| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| if ( | ||
| typeof meta.changeDetection === 'number' && | ||
| meta.changeDetection !== core.ChangeDetectionStrategy.Default | ||
| meta.changeDetection !== core.ChangeDetectionStrategy.OnPush |
There was a problem hiding this comment.
I'm highlighting the main changes
1.
Sorry, something went wrong.
| @@ -242,7 +244,9 @@ export class PartialComponentLinkerVersion1<TStatement, TExpression> | |||
| : ViewEncapsulation.Emulated, | |||
| changeDetection: metaObj.has('changeDetection') | |||
| ? parseChangeDetectionStrategy(metaObj.getValue('changeDetection')) | |||
| : ChangeDetectionStrategy.Default, | |||
| : hasOnPushByDefault | |||
| ? ChangeDetectionStrategy.OnPush | |||
| : ChangeDetectionStrategy.Eager, | |||
There was a problem hiding this comment.
Sorry, something went wrong.
| animations: decl.animations !== undefined ? new WrappedNodeExpr(decl.animations) : null, | ||
| defer, | ||
| changeDetection: decl.changeDetection ?? ChangeDetectionStrategy.Default, | ||
| changeDetection: decl.changeDetection ?? ChangeDetectionStrategy.OnPush, |
There was a problem hiding this comment.
Sorry, something went wrong.
The default change detection strategy is now OnPush. BREAKING CHANGE: Component with undefined `changeDetection` property are now `OnPush` by default. Specify `changeDetection: ChangeDetectionStrategy.Eager` to keep the previous behavior.
There was a problem hiding this comment.
LGTM
Reviewed-for: fw-security
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Reviewed-for: fw-security
Sorry, something went wrong.
|
Caretaker note: Presubmit is a flake this is good to go |
Sorry, something went wrong.
|
This PR was merged into the repository. The changes were merged into the following branches:
|
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The default change detection strategy is now OnPush.
BREAKING CHANGE: Component with undefined changeDetection property are now OnPush by default. Specify changeDetection: ChangeDetectionStrategy.Eager to keep the previous behavior.