ngMeteor icon indicating copy to clipboard operation
ngMeteor copied to clipboard

can we use ng-app as bootstrap?

Open crapthings opened this issue 11 years ago • 4 comments

crapthings avatar Mar 27 '14 09:03 crapthings

or should i use ng-controller on root tag?

crapthings avatar Mar 27 '14 09:03 crapthings

what is replace with angular.module()

ngMeteor.module('app', []);

it seems all modules dependency is auto inject.

crapthings avatar Mar 27 '14 09:03 crapthings

Hello :)

If you need to inject your own module please refer to the README here.

ngMeteor already handles the bootstrap for you so you can simply start using angular by specifying a ng-controller on your root tag, which cannot be the body tag because Meteor does not allow attributes on the body tag.

loneleeandroo avatar Mar 27 '14 22:03 loneleeandroo

@crapthings giving the programmer the option of using ngMeteor's bootstrap or use ng-app is a good idea. If it is still relevant for you please open an issue for it in our repo and we would love to discuss it: https://github.com/Urigo/ngmeteor Thanks

Urigo avatar Sep 01 '14 01:09 Urigo