mobile-angular-ui
mobile-angular-ui copied to clipboard
manually initialize Angular
manually initialize Angular, component is not normal .
angular.module('myApp', [])
.controller('MyController', ['$scope', function ($scope) {
$scope.greetMe = 'World';
}]);
angular.element(document).ready(function() {
angular.bootstrap(document, ['myApp']);
});
@motopia Can u explain a little? What does it mean 'not normal'?
Hi, run into the same problem. When using manual bootstrapping (don't use ng-app="myApp" directive in html) the sidebars not rendered and ui-states don't work (e.g. ui-toggle="uiSidebarRight")
nice
I'm having the same problem. I'm manually initializing (as I'm using meteor), but the sidebars ui-toggle won't work. Anyone find a solution?