我是AngularJS的新手。在以下情况下,我不了解$scope
的含义。
有人可以帮助我吗?非常感谢。
var myApp= angular.module('myApp', []);
myApp.controller("myAppController", ['$scope', function($scope) {
// function body
}]);
myApp.controller("myAppController", function($scope) {
// function body
});