mobile-angular-ui icon indicating copy to clipboard operation
mobile-angular-ui copied to clipboard

manually initialize Angular

Open motopia opened this issue 9 years ago • 4 comments

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 avatar Jul 03 '15 03:07 motopia

@motopia Can u explain a little? What does it mean 'not normal'?

mcasimir avatar Jul 30 '15 15:07 mcasimir

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")

leibler avatar Oct 25 '15 19:10 leibler

nice

Jason7Le avatar Oct 26 '15 05:10 Jason7Le

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?

sarmadbokhari avatar Jan 14 '16 16:01 sarmadbokhari