hi Hao!
You've got 2 options:
(1) Create a new module ('app'?) that would have dependencies on 2
modules you've mentioned. Then you can use this new module in ng-app.
(2) Use manual bootstrapping
(
http://docs.angularjs.org/api/angular.bootstrap) where you can pass
an array of modules
I'm almost sure that I saw a way of using ngApp with multiple module
names but can't find it in the doc, will check angular sources /
experiment a bit and will send a jsFiddle in case I can find a way to
use ngApp with multiple modules. But I hope that the above will allow
you to see options.
Cheers,
Pawel
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To post to this group, send email to
ang...@googlegroups.com.
> To unsubscribe from this group, send email to
>
angular+u...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/angular?hl=en.
>
>