Angular.js新手.
传递控制器有什么不同
app.config(function($routeProvider, $locationProvider){
$locationProvider.html5Mode(false);
$routeProvider
.when('/login', {templateUrl: '/templates/profile/login.html', controller: 'angLoginController'});
});
vs在模板中使用ng-controller指令声明控制器?
<body ng-controller="angLoginController">
....
</body>