So I have written two different angular js codes.
One contains module and controller. This looks like below and works well on my html file!
(function() {
'use strict';
angular
.module('demo', [])
.controller('repeatController', repeatController);
function repeatController($scope) {
}
})();
I, however, have these two js files like below. One only contains module, and the other has controller in it. I tested angularjs simply by using {{}} but it does not work on the html file. {{3+1}} appears to be {{3+1}} not 4.
(function(){
angular
.module('demo', [])
})(a);
and
(function() {
angular
.module('demo')
.controller("repeatController", repeatController);
function repeatController(){
}
})();
Can anyone fix the bottom one?