Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Fix for issue #5587 where app is bootstrapped more than once #5863

Closed
wants to merge 3 commits into from

Conversation

siddii
Copy link
Contributor

@siddii siddii commented Jan 17, 2014

PR for #5587

I am not sure where to write the test for this fix (may be e2e with html file loading build/angular.js?) .

Here is a plunkr showing that the fix works - http://plnkr.co/edit/xey09HDiX5jQmHKbgEVi?p=preview

@petebacondarwin
Copy link
Member

This looks like the right fix to me but I can't think how to create a unit test for it.

@siddii
Copy link
Contributor Author

siddii commented Jan 28, 2014

@petebacondarwin - I give 👍 to merge this PR if its OK with you.

@tbosch tbosch modified the milestones: 1.2.12, 1.2.11, 1.2.13 Feb 3, 2014
@btford btford modified the milestones: 1.2.14, 1.2.13 Feb 15, 2014
@IgorMinar IgorMinar modified the milestones: 1.3.0-beta.1, 1.2.14 Mar 1, 2014
@btford btford modified the milestones: 1.3.0-beta.2, 1.3.0-beta.1 Mar 10, 2014
@tbosch tbosch modified the milestones: 1.3.0-beta.3, 1.3.0-beta.2 Mar 14, 2014
@petebacondarwin
Copy link
Member

@siddii - thanks for this PR. I added an E2E test that actually fails without the fix and included a warning in the console if one attempts to load more than one copy of angular.

@spirographer
Copy link

@siddii @petebacondarwin great to see such a clean solution to this bug. I should start digging in the source myself at some point.

vojtajina pushed a commit that referenced this pull request Mar 21, 2014
This is hard to test as a unit-test, since it involves the actual loading
of angular, but it turns out that it is easy to test using a protractor
e2e test.

Closes #5863
Closes #5587
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants