Tuesday, February 9, 2016

Angular JS module, controller, $scope

ng-app defines the module name

angular.module to construct the module

you will also put dependencies in []

inside module has controller

controller is also on html file (this portion of web page is in my control with my $scope)

$scope send data over to html file using {{xxxx}}

xxxx is inside $scope

display data on web page.

No comments:

Post a Comment