Skip to content

Commit

Permalink
refactor(core): Add nocollapse annotation to ViewContext NG_ELEMENT_ID
Browse files Browse the repository at this point in the history
This is required to prevent the static property from being collapsed
into a variable.
  • Loading branch information
atscott committed Sep 20, 2024
1 parent 8cdbfad commit eb44965
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/render3/view_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class ViewContext {

/**
* @internal
* @nocollapse
*/
static __NG_ELEMENT_ID__ = injectViewContext;
}
Expand Down

0 comments on commit eb44965

Please sign in to comment.