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

feat(upgrade): Bootstrap with ng2 in ng1 #3539

Closed
wants to merge 2 commits into from

Conversation

mhevery
Copy link
Contributor

@mhevery mhevery commented Aug 7, 2015

This is WIP, but wanted to get some feedback.

@mhevery mhevery added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: merge The PR is ready for merge by the caretaker WORKS_AS_INTENDED and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: merge The PR is ready for merge by the caretaker WORKS_AS_INTENDED labels Aug 8, 2015
@googlebot
Copy link

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.

@googlebot
Copy link

CLAs look good, thanks!

*/
get changeDetectorRef(): ChangeDetectorRef {
if (this._changeDetectorRef === null) {
this._changeDetectorRef = new ChangeDetectorRef(this._view.changeDetector);
Copy link
Contributor

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

Copy link
Contributor Author

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

@vsavkin
Copy link
Contributor

vsavkin commented Sep 22, 2015

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.

@vsavkin
Copy link
Contributor

vsavkin commented Sep 22, 2015

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.

@vsavkin vsavkin added pr_state: LGTM action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Sep 22, 2015
@vsavkin vsavkin assigned mhevery and unassigned vsavkin Sep 22, 2015
@mhevery
Copy link
Contributor Author

mhevery commented Sep 23, 2015

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...

@mhevery mhevery closed this in 8427863 Sep 23, 2015
robwormald pushed a commit to robwormald/angular that referenced this pull request Sep 25, 2015
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants