AngularJS Data binding
Different types of bindings :
1) One way binding using ng-bind
Example :
Controller :
var app = angular.module('store', []); app.controller('myStore', function($scope) { $scope.stname = "Van husen"; $scope.staddress = "Germany"; });
Example :
View :
Controller :
var app = angular.module('myApp', []); app.controller('myStore', function($scope) { $scope.stname = "Van husen"; $scope.staddress = "Germany"; $scope.getvalue = fucntion(){ console.log($scope); } });