Angular controller is not talking to view. ng-app is included, and also is ng-controller.
Using meanJS.
Here is the view:
<section ng-app="my-module" ng-controller="MyModuleController">
<div>
{{ costumers[0] }}
</div>
</section>
Here is the controller:
(function() {
'use strict';
angular
.module('my-module')
.controller('MyModuleController', MyModuleController);
MyModuleController.$inject = ['$scope'];
function MyModuleController($scope) {
var vm = this;
// My module controller logic
// ...
$scope.costumers = [{
name: 'John Doe',
city: 'New York'
}, {
name: 'Peter Griffin',
city: 'San Francisco'
}];
init();
function init() {
}
}
})();
module('my-module',[])