Instead of a invoking bootstrap directly from you code it would be nice to 
create a directive like ngApp instead.

That way you keep your code and HTML decoupled.

I did just that, I created a directive called ngModule, you can get the 
code from:

http://www.simplygoodcode.com/2014/04/angularjs-getting-around-ngapp-limitations-with-ngmodule/

Just like you did, behind the scenes it just calls angular.bootstrap().

On Sunday, August 5, 2012 10:40:28 PM UTC-4, Andy Joslin wrote:
>
> Really? I've read before it works with multiple app tags.
>
> After some fiddling (literally o-:), I was able to get it to work with 
> bootstrap, though: http://jsfiddle.net/Gjyaq/
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to