Skip to content

Commit e90cc84

Browse files
committed
refactor(youtube-player): remove explicit change detection
Now that `OnPush` is the default, we can remove it from the metadata.
1 parent fd00e5f commit e90cc84

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/youtube-player/youtube-player-placeholder.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';
9+
import {Component, Input, ViewEncapsulation} from '@angular/core';
1010

1111
/** Quality of the placeholder image. */
1212
export type PlaceholderImageQuality = 'high' | 'standard' | 'low';
1313

1414
@Component({
1515
selector: 'youtube-player-placeholder',
16-
changeDetection: ChangeDetectionStrategy.OnPush,
1716
encapsulation: ViewEncapsulation.None,
1817
template: `
1918
<button type="button" class="youtube-player-placeholder-button" [attr.aria-label]="buttonLabel">

src/youtube-player/youtube-player.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import type * as YT from 'youtube';
1313

1414
import {
15-
ChangeDetectionStrategy,
1615
Component,
1716
ElementRef,
1817
Input,
@@ -111,7 +110,6 @@ enum PlayerState {
111110
*/
112111
@Component({
113112
selector: 'youtube-player',
114-
changeDetection: ChangeDetectionStrategy.OnPush,
115113
encapsulation: ViewEncapsulation.None,
116114
imports: [YouTubePlayerPlaceholder],
117115
styleUrl: 'youtube-player.css',

0 commit comments

Comments
 (0)