From c87b93a0966fa78d5f1c16afaca62efbf8dd1525 Mon Sep 17 00:00:00 2001 From: Valery Semenenko Date: Tue, 18 Jun 2024 11:55:34 +0300 Subject: [PATCH] add post --- _posts/2024-06-17-change-detection-default.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 _posts/2024-06-17-change-detection-default.md diff --git a/_posts/2024-06-17-change-detection-default.md b/_posts/2024-06-17-change-detection-default.md new file mode 100644 index 0000000..06b7ed7 --- /dev/null +++ b/_posts/2024-06-17-change-detection-default.md @@ -0,0 +1,13 @@ +--- +title: "Angular - ChangeDetectionStrategy.OnPush по умолчанию" +layout: post +categories: Development +tags: [angular, changeDetection, OnPush] +share: true +--- + +Настроить ChangeDetectionStrategy.OnPush в качестве стратегии по умолчанию: + +```bash +ng config schematics.@schematics/angular.component.changeDetection OnPush +``` \ No newline at end of file