-
Notifications
You must be signed in to change notification settings - Fork 27.4k
fix(ngScenario): Allow ngScenario to handle lazy-loaded and manually bootstrapped applications #10723
fix(ngScenario): Allow ngScenario to handle lazy-loaded and manually bootstrapped applications #10723
Conversation
…bootstrapped applications I know protractor is preferred, and ngScenario is only in maintenance mode. But, we are limited to ngScenario based on the devices/browsers we are targeting (no web-driver available). So, we need to address the bug where ngScenario does not work with manual bootstrap and also has issues if angular.resumeBootstrap is not yet defined (race condition when lazy-loading).
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/. If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits. Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name. |
Signed CLA |
CLAs look good, thanks! |
ngScenario is deprecated, I'm not sure anyone maintaining 1.x can properly review this |
@caitp Even if deprecated, I don't think ngScenario should exist in angular with bugs. At the moment ngScenario does not support apps which manual bootstrap or are lazy-loaded (Googling "ngscenario manual bootstrap" highlights that this is causing problems for more than just me). You'll notice that no tests were changed or removed, only added. The existing functionality remains unchanged and I only fix the broken cases. If well covered bug fixes won't be considered it should really be removed from the project. |
Given that we are in maintenance mode, we should probably just land this - but we should remove ngScenario (perhaps to its own project where it can be taken on by others) before 1.5.0 @marcfallows - can you please run |
Thanks @petebacondarwin. I've updated the jshint and jscs errors in my changes, sorry I didn't catch that on the first go-around. It would certainly be useful for us that if ngScenario were removed it was still available (as it's own project, per your suggestion). Unfortunately we are currently tied to using it, but there's not really any reason it needs to be part of angular's core if the appropriate hooks are available in angular for it to sit a separate project. |
…bootstrapped applications I know protractor is preferred, and ngScenario is only in maintenance mode. But, we are limited to ngScenario based on the devices/browsers we are targeting (no web-driver available). So, we need to address the bug where ngScenario does not work with manual bootstrap and also has issues if angular.resumeBootstrap is not yet defined (race condition when lazy-loading). Closes #10723
@marcfallows - I have merged this. Would you be interested in taking more of an active role in supporting this module if we separated it from the angular.js repository? |
Nice! @petebacondarwin I would definitely like to be involved if it became a standalone project, and assist in decoupling from the angular project to support that move. |
@marcfallows - I have created a repository https://github.com/angular/ngScenario and given you write access. Are there any other people that should be invited? |
I know protractor is preferred, and ngScenario is only in maintenance mode. But, we are limited to
ngScenario based on the devices/browsers we are targeting (no web-driver available). So, we need
to address the bug where ngScenario does not work with manual bootstrap and also has issues if
angular.resumeBootstrap is not yet defined (race condition when lazy-loading).