angular-seed icon indicating copy to clipboard operation
angular-seed copied to clipboard

Controllers without route and stuff

Open cskiwi opened this issue 9 years ago • 0 comments

hi

I've been using your seed, and I quite like it. but now I'm trying to do the following:

<html>
   <head></head>
   <body>
      <header ng-controller="NavController">   
         <!-- html to be handled by NavController -->
      </header>

      <div ng-view></div>
      <!-- all scripts-->
   </body>
</html>

So there is an extra controller in the index.html besides the one loaded in via the routing stuff


the folder structure I did as following:

root
|
├── js
|   |
|   ├── app
|   |   |
|   |   ├── controllers
|   |   |   ├── Stuff
|   |   |   |   ├── Stuff.js
|   |   |   |   └── StuffDetail.js
|   |   |   └── Nav.js
|   |   ├── directives
|   |   ├── filters
|   |   ├── services
|   |   ├── views
|   |   |
|   |   ├── config.js
|   |   └── main.js
|   |
|   └── lib
|       |
|       ├── angular.js
|       ├── ng-app.js
|       └── require.js
|
└── index.html

But I always get:

while when I remove the ng-controller. my app works perfectly, so it's not a config option any clue / hint on why this is happening?

cskiwi avatar Jul 23 '15 14:07 cskiwi