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
Conversation
ComponentFactory
ComponentFactory
Still needs review from @vicb |
} | ||
} | ||
|
||
function renderDetachEmbeddedView(elementData: ElementData, view: ViewData) { | ||
if (view.renderer) { |
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.
Call util here!
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.
Done
|
||
get element(): ElementRef { return <ElementRef>unimplemented(); } | ||
get element(): ElementRef { return this._data.renderElement; } |
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.
new ElementRef
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.
Done
get parentInjector(): Injector { | ||
let view = this._view; | ||
let parentIndex = view.def.nodes[this._elIndex].parent; | ||
if (parentIndex == null) { |
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.
Use getDiParent
here!
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.
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
…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
…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
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. |
ComponentFactory
s can now be created from aViewDefinitionFactory
viaRefFactory.createComponentFactory
.This commit also:
Services
intoRefFactory
andRootData
ViewState
into a bitmaskViewContainerRef.move