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(core): view engine - integrate with ComponentFactory #14237

Closed
wants to merge 1 commit into from

Conversation

tbosch
Copy link
Contributor

@tbosch tbosch commented Feb 2, 2017

ComponentFactorys can now be created from a ViewDefinitionFactory via
RefFactory.createComponentFactory.

This commit also:

  • splits Services into RefFactory and RootData
  • changes ViewState into a bitmask
  • implements ViewContainerRef.move

@tbosch tbosch changed the title WIP - feat(core): view engine - integrate with ComponentFactory feat(core): view engine - integrate with ComponentFactory Feb 2, 2017
@tbosch tbosch removed the state: WIP label Feb 2, 2017
@tbosch tbosch requested a review from vicb February 2, 2017 16:12
@IgorMinar IgorMinar self-requested a review February 2, 2017 17:05
@tbosch
Copy link
Contributor Author

tbosch commented Feb 2, 2017

Still needs review from @vicb

}
}

function renderDetachEmbeddedView(elementData: ElementData, view: ViewData) {
if (view.renderer) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call util here!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


get element(): ElementRef { return <ElementRef>unimplemented(); }
get element(): ElementRef { return this._data.renderElement; }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new ElementRef

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

get parentInjector(): Injector {
let view = this._view;
let parentIndex = view.def.nodes[this._elIndex].parent;
if (parentIndex == null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use getDiParent here!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

`ComponentFactory`s can now be created from a `ViewDefinitionFactory` via
`RefFactory.createComponentFactory`.

This commit also:
- splits `Services` into `Refs` and `RootData`
- changes `ViewState` into a bitmask
- implements `ViewContainerRef.move`

Part of angular#14013
@tbosch tbosch added the action: merge The PR is ready for merge by the caretaker label Feb 3, 2017
@mhevery mhevery closed this in 14d7844 Feb 3, 2017
@tbosch tbosch deleted the view_root branch February 7, 2017 17:41
asnowwolf pushed a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017
…14237)

`ComponentFactory`s can now be created from a `ViewDefinitionFactory` via
`RefFactory.createComponentFactory`.

This commit also:
- splits `Services` into `Refs` and `RootData`
- changes `ViewState` into a bitmask
- implements `ViewContainerRef.move`

Part of angular#14013

PR Close angular#14237
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 28, 2017
…14237)

`ComponentFactory`s can now be created from a `ViewDefinitionFactory` via
`RefFactory.createComponentFactory`.

This commit also:
- splits `Services` into `Refs` and `RootData`
- changes `ViewState` into a bitmask
- implements `ViewContainerRef.move`

Part of angular#14013

PR Close angular#14237
@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 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants