From 39eeb99365cf3912a40782ec8e6a170d65f88841 Mon Sep 17 00:00:00 2001 From: Mathis Hofer Date: Tue, 3 Dec 2024 15:26:27 +0100 Subject: [PATCH] Always use OnPush when creating new components --- angular.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/angular.json b/angular.json index 1b0794c74..06dc7ea53 100644 --- a/angular.json +++ b/angular.json @@ -1,5 +1,12 @@ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "schematics": { + "@schematics/angular": { + "component": { + "changeDetection": "OnPush" + } + } + }, "version": 1, "newProjectRoot": "projects", "projects": {