Skip to content

Commit 48cbdd1

Browse files
mariella-203atscott
authored andcommitted
docs: remove Component suffix in zone pollution guide
1 parent 0b45c9a commit 48cbdd1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎adev/src/content/best-practices/runtime-performance/zone-pollution.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In such cases, you can instruct Angular to avoid calling change detection for ta
2525
import { Component, NgZone, OnInit, inject } from '@angular/core';
2626

2727
@Component(...)
28-
class AppComponent implements OnInit {
28+
class App implements OnInit {
2929
private ngZone = inject(NgZone);
3030

3131
ngOnInit() {
@@ -43,7 +43,7 @@ import { Component, NgZone, OnInit, inject } from '@angular/core';
4343
import * as Plotly from 'plotly.js-dist-min';
4444

4545
@Component(...)
46-
class AppComponent implements OnInit {
46+
class App implements OnInit {
4747
private ngZone = inject(NgZone);
4848

4949
ngOnInit() {
@@ -65,7 +65,7 @@ import { Component, NgZone, OnInit, output, inject } from '@angular/core';
6565
import * as Plotly from 'plotly.js-dist-min';
6666

6767
@Component(...)
68-
class AppComponent implements OnInit {
68+
class App implements OnInit {
6969
private ngZone = inject(NgZone);
7070

7171
plotlyClick = output<Plotly.PlotMouseEvent>();
@@ -97,7 +97,7 @@ import { Component, NgZone, OnInit, output, inject } from '@angular/core';
9797
import * as Plotly from 'plotly.js-dist-min';
9898

9999
@Component(...)
100-
class AppComponent implements OnInit {
100+
class App implements OnInit {
101101
private ngZone = inject(NgZone);
102102

103103
plotlyClick = output<Plotly.PlotMouseEvent>();

0 commit comments

Comments
 (0)