I am trying to set the value of a $scope property using ng-init, and I am unable to access that value in the controller\'s javascript. What am I doing wrong? Here is a fidd
Try this Code
var app = angular.module('myapp', []); app.controller('testController', function ($scope, $http) { $scope.init = function(){ alert($scope.testInput); };});