Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Thoughts on multiple apps on same page #56

Closed
gep13 opened this issue Sep 8, 2014 · 1 comment
Closed

[Question] Thoughts on multiple apps on same page #56

gep13 opened this issue Sep 8, 2014 · 1 comment
Labels

Comments

@gep13
Copy link

gep13 commented Sep 8, 2014

Not sure if this is something that needs to be added into the style guide or not, or whether this is just a general question, so apologises if this is the latter.

What are your thoughts on doing this:

http://stackoverflow.com/questions/24867578/multiple-apps-and-controllers-in-the-same-file/24867989#24867989

The reason that this has come up for us is that we are using Angular within SharePoint WebParts. This is working really well for us, until we need to add two webparts to the same page. Since angular will only bootstrap the first app that it finds, we have had to workaround the initial bootstrap and do this manually. While this works, it has a slight "smell" to it, and wondered what your thoughts are on this.

If it is frowned upon, do you have any suggestions for a better approach?

@johnpapa
Copy link
Owner

Haven't tried creating 2 apps. I would try to create 1 app that depends on the others or manually bootstrap it. SO is your best bet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants