i've found a way to add the navMenu directive before bootstrapping.
this is better because a single require is needed and not in every controller of the app
and i've only one directive HTML Tag in my templates.
before in controller files:
head of 'controller / home_ctrl.js'
define(['app', 'directive/navMenu','prettify'], function (app) {
app.register.controller('HomeController'
i've found a way to add the navMenu directive before bootstrapping. this is better because a single require is needed and not in every controller of the app and i've only one directive HTML Tag in my templates.
before in controller files:
head of 'controller / home_ctrl.js'
head of 'views / home.html'
head of 'directive/navMenu.js'
after only in bootstrap files:
bottom of app.js
body of index.html
head of 'directive/navMenu.js'
no 'app.register' needed if the directive is global.
If this make sense then you can add this :)
greetz from germany!