-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
feat(upgrade): Bootstrap with ng2 in ng1 #3539
Conversation
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
10da120
to
e0d9c39
Compare
CLAs look good, thanks! |
5523a4e
to
4be35ae
Compare
*/ | ||
get changeDetectorRef(): ChangeDetectorRef { | ||
if (this._changeDetectorRef === null) { | ||
this._changeDetectorRef = new ChangeDetectorRef(this._view.changeDetector); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every detector has a cached ref. Use _view.changeDetector.ref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the tip. fixed
Maybe I am missing something, but it looks like Angular 1 and Angular 2 DI bindings are separate. Meaning that if I declare an angular 1 binding, it won't be injected into an angular 2 component and vice versa. I think we can make it work if we think it is important. |
It would be nice to add more integration tests. For instance, bootstrap's config and modules parameters are not tested. Also, as you pointed out the way scopes and detectors are wired up may not be correct. |
Yes more of these tests are needed. Will add them as I work on the specific features. For example passing parameters, asserting order of things etc... |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This is WIP, but wanted to get some feedback.