Skip to content

Commit 9a68155

Browse files
committed
feat: enhance app component with OnPush change detection strategy
1 parent 83d6c59 commit 9a68155

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { Component } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
22
import { Navigation } from './components/navigation/navigation';
33

44
@Component({
55
selector: 'app-root',
66
imports: [Navigation],
77
template: `<app-navigation class="h-full"></app-navigation>`,
8+
changeDetection: ChangeDetectionStrategy.OnPush,
89
styles: [
910
`
1011
:host {

0 commit comments

Comments
 (0)