mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(core): document setComponentScope to provide context (#39662)
`setComponentScope` was previously undocumented. This commit adds a short explanation of what the function does, and adds a link to a doc which explains issues with cycles in more detail. PR Close #39662
This commit is contained in:
@@ -352,6 +352,12 @@ export function ɵɵdefineComponent<T>(componentDefinition: {
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated next to NgModules to monkey-patch directive and pipe references onto a component's
|
||||
* definition, when generating a direct reference in the component file would otherwise create an
|
||||
* import cycle.
|
||||
*
|
||||
* See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.
|
||||
*
|
||||
* @codeGenApi
|
||||
*/
|
||||
export function ɵɵsetComponentScope(
|
||||
|
||||
Reference in New Issue
Block a user