---
title: "Discussion on \"How to set onPush as the default change detection strategy for new Angular components?\" | Hashnode"
description: "Discussion on \"How to set onPush as the default change detection strategy for new Angular components?\". Most angular components I create are generated using the angular CLI. Every time I had to set the change detection to onPush after the component has been created. I know there is an option to set it as the default, but I was lazy to search and set it..."
url: "https://hashnode.com/posts/angular-onpush-as-default/5f57a640edbc0327d34afc44"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to set onPush as the default change detection strategy for new Angular components?](https://vikky.dev/angular-onpush-as-default?utm_source=hashnode&utm_medium=feed)

Most angular components I create are generated using the angular CLI. Every time I had to set the change detection to onPush after the component has been created. I know there is an option to set it as the default, but I was lazy to search and set it...

Sep 7, 2020 · 2 min read · vikky.dev  
Read the article

-   [#angularjs](https://hashnode.com/tag/angularjs)
-   [#components](https://hashnode.com/tag/components)

## Written by

[Vignesh M](https://hashnode.com/@ShivEnigma)

@ShivEnigma

  
[View profile](https://hashnode.com/@ShivEnigma)

Breaking keyboards

## Responses 1

Markdown supported · ⌘↵ to post

[Henrique Custódia](https://hashnode.com/@henriquecustodia)

[Jun 9, 2022](https://hashnode.com/posts/angular-onpush-as-default/5f57a640edbc0327d34afc44/comment/62a245e3e0cdd0ad1a6e2ad0)

Thanks for share!
