Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

controller in angularjs projects


myApp.controller('ChildController', ['$scope', function($scope) {
  $scope.name = 'Mattie';
}]);
myApp.controller('GrandChildController', ['$scope', function($scope) {
  $scope.timeOfDay = 'evening';
  $scope.name = 'Gingerbread Baby';
}]);
Source by docs.angularjs.org #
 
PREVIOUS NEXT
Tagged: #controller #angularjs #projects
ADD COMMENT
Topic
Name
3+2 =