First of all, thanks for this great plugin! (to the author of angularAMD)
I have some troubles. I have all modules loaded with ngAMD but two are inside my index.html because are templates and I'm including this way:
<div ng-include="'views/header.html'"></div>
header.html uses HeaderCtrl but I have no idea how load before angularAMD.bootstrap...
More code:
header.coffee that requires app
define ['app', 'bootstrap'], (app, bs) ->
'use strict'
app.controller 'HeaderCtrl', ($scope, $rootScope) ->
$scope.searchText = "";
$scope.updateSearch = ->
$rootScope.searchText = $scope.searchText;
app.coffee
define ['angular', 'angularAMD'], (angular, angularAMD) ->
'use strict'
app = angular.module 'testsApp', [
'ngRoute'
'localization'
'restangular'
]
angularAMD.bootstrap app
app
After bootstrapping app, ng tries to solve ng-include but HeaderCtrl is not loaded! This happens only with CTRL+F5 on page, it's a matter of loading time. I have no idea on how solve this. Any hint?