Skip to content

Commit

Permalink
fix(core): Ensure the ViewContext is retained after closure minific…
Browse files Browse the repository at this point in the history
…ation

In order to survive closure minification correctly, static properties need to
be annotated with @nocollapse.

For more history, see angular#28050
  • Loading branch information
atscott committed Sep 20, 2024
1 parent 8cdbfad commit a58ccaf
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 a58ccaf

Please sign in to comment.