I am getting error: I have two files one is controller and another is directive.
main.js
(function () {
var files = [
"menu.js"
]
angular.module("myapp.view", [{
serie: true,
files: files
}])
.controller("myCtrl", function($scope){
$scope.name = "hello world";
})
})();
menu.js directive
(function(){
angular.module("myapp.menu", [])
.directive('NavMenu', function(){
return {
restrict: 'AE',
scope: {
myModel: '=ngModel'
},
template: '<input ng-model="myModel"/>',
}
});
})();
error msg "Uncaught Error: [$injector:modulerr]"