angularjs - Angular: Module was created but never loaded -


i have trying fix not able find solution since long time. angular newbie , trying make website home angular app. angular app has controller , 2-3 directives. in head section of page have: home.cshtml:

<head>     //some other stuff....     <script src="/scripts/angular.min.js" type="text/javascript"></script>     <script src="/scripts/myapp.js" type="text/javascript"></script> </head> <body ng-app="myapp">     <div ng-controller="homecontroller">        <page-tile-grid></page-tile-grid>     </div> </body> 

and myapp.js has

var myapp= angular.module('myapp', [])                   .controller("homecontroller", function($scope){......})                   .directive('page-tile-grid', function () {....})                   .directive('page-tiles', function () {....})                   .directive('page-tile-info', function () {....}) 

i see no error on console. template in directive not load. , see warning on batarang angular console:

module "myapp" created never loaded. 

what if try like:

var app = angular.module('myapp', []);  app.controller('homectrl', function($scope) {     $scope.title = "homepage";     ... });  app.controller('aboutctrl', function($scope) {     $scope.title = "about";     ... }); 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -