From 6545eff8152cbffb26e2f39db80679eaf57eb0d7 Mon Sep 17 00:00:00 2001 From: Jessica Janiuk Date: Mon, 14 Apr 2025 13:56:07 +0200 Subject: [PATCH] docs: remove unused imports in examples (#60867) PR Close #60867 --- .../examples/animations/src/app/hero-list-auto.component.ts | 2 -- .../animations/src/app/hero-list-enter-leave.component.ts | 2 -- .../examples/animations/src/app/hero-list-groups.component.ts | 2 -- .../examples/animations/src/app/hero-list-page.component.ts | 2 -- .../examples/animations/src/app/insert-remove.component.ts | 2 -- .../content/examples/animations/src/app/querying.component.ts | 2 -- .../content/examples/inputs-outputs/src/app/app.component.ts | 2 -- 7 files changed, 14 deletions(-) diff --git a/adev/src/content/examples/animations/src/app/hero-list-auto.component.ts b/adev/src/content/examples/animations/src/app/hero-list-auto.component.ts index f2454e2c39c..e188a1aebe1 100755 --- a/adev/src/content/examples/animations/src/app/hero-list-auto.component.ts +++ b/adev/src/content/examples/animations/src/app/hero-list-auto.component.ts @@ -2,13 +2,11 @@ import {Component, Input, Output, EventEmitter} from '@angular/core'; import {trigger, state, style, animate, transition} from '@angular/animations'; import {Hero} from './hero'; -import {NgFor} from '@angular/common'; @Component({ selector: 'app-hero-list-auto', templateUrl: 'hero-list-auto.component.html', styleUrls: ['./hero-list-page.component.css'], - imports: [NgFor], // #docregion auto-calc animations: [ trigger('shrinkOut', [ diff --git a/adev/src/content/examples/animations/src/app/hero-list-enter-leave.component.ts b/adev/src/content/examples/animations/src/app/hero-list-enter-leave.component.ts index 6a3df81e006..e0276b2f7e1 100755 --- a/adev/src/content/examples/animations/src/app/hero-list-enter-leave.component.ts +++ b/adev/src/content/examples/animations/src/app/hero-list-enter-leave.component.ts @@ -2,7 +2,6 @@ import {Component, Input, Output, EventEmitter} from '@angular/core'; import {trigger, state, style, animate, transition} from '@angular/animations'; import {Hero} from './hero'; -import {NgFor} from '@angular/common'; @Component({ selector: 'app-hero-list-enter-leave', @@ -19,7 +18,6 @@ import {NgFor} from '@angular/common'; `, styleUrls: ['./hero-list-page.component.css'], - imports: [NgFor], // #docregion animationdef animations: [ trigger('flyInOut', [ diff --git a/adev/src/content/examples/animations/src/app/hero-list-groups.component.ts b/adev/src/content/examples/animations/src/app/hero-list-groups.component.ts index 6d82cb7bcd6..991e35aa5cc 100755 --- a/adev/src/content/examples/animations/src/app/hero-list-groups.component.ts +++ b/adev/src/content/examples/animations/src/app/hero-list-groups.component.ts @@ -2,7 +2,6 @@ import {Component, Input, Output, EventEmitter} from '@angular/core'; import {trigger, state, style, animate, transition, group} from '@angular/animations'; import {Hero} from './hero'; -import {NgFor} from '@angular/common'; @Component({ selector: 'app-hero-list-groups', @@ -19,7 +18,6 @@ import {NgFor} from '@angular/common'; `, styleUrls: ['./hero-list-page.component.css'], - imports: [NgFor], // #docregion animationdef animations: [ trigger('flyInOut', [ diff --git a/adev/src/content/examples/animations/src/app/hero-list-page.component.ts b/adev/src/content/examples/animations/src/app/hero-list-page.component.ts index 04bf7c06eea..b6f9f1d7758 100755 --- a/adev/src/content/examples/animations/src/app/hero-list-page.component.ts +++ b/adev/src/content/examples/animations/src/app/hero-list-page.component.ts @@ -4,12 +4,10 @@ import {Component, HostBinding, OnInit} from '@angular/core'; import {trigger, transition, animate, style, query, stagger} from '@angular/animations'; import {HEROES} from './mock-heroes'; import {Hero} from './hero'; -import {NgFor} from '@angular/common'; // #docregion filter-animations @Component({ // #enddocregion filter-animations - imports: [NgFor], selector: 'app-hero-list-page', templateUrl: 'hero-list-page.component.html', styleUrls: ['hero-list-page.component.css'], diff --git a/adev/src/content/examples/animations/src/app/insert-remove.component.ts b/adev/src/content/examples/animations/src/app/insert-remove.component.ts index b1b690fe3f6..5cbd9ae6610 100755 --- a/adev/src/content/examples/animations/src/app/insert-remove.component.ts +++ b/adev/src/content/examples/animations/src/app/insert-remove.component.ts @@ -1,11 +1,9 @@ // #docplaster import {Component} from '@angular/core'; import {trigger, transition, animate, style} from '@angular/animations'; -import {NgIf} from '@angular/common'; @Component({ selector: 'app-insert-remove', - imports: [NgIf], animations: [ // #docregion enter-leave-trigger trigger('myInsertRemoveTrigger', [ diff --git a/adev/src/content/examples/animations/src/app/querying.component.ts b/adev/src/content/examples/animations/src/app/querying.component.ts index eff51228d58..76783cf0b67 100755 --- a/adev/src/content/examples/animations/src/app/querying.component.ts +++ b/adev/src/content/examples/animations/src/app/querying.component.ts @@ -11,7 +11,6 @@ import { } from '@angular/animations'; import {HEROES} from './mock-heroes'; -import {NgIf} from '@angular/common'; @Component({ selector: 'app-querying', @@ -34,7 +33,6 @@ import {NgIf} from '@angular/common'; } `, styleUrls: ['./querying.component.css'], - imports: [NgIf], animations: [ trigger('query', [ transition(':enter', [ diff --git a/adev/src/content/examples/inputs-outputs/src/app/app.component.ts b/adev/src/content/examples/inputs-outputs/src/app/app.component.ts index e998f0147a9..4b81f885839 100644 --- a/adev/src/content/examples/inputs-outputs/src/app/app.component.ts +++ b/adev/src/content/examples/inputs-outputs/src/app/app.component.ts @@ -1,6 +1,5 @@ // #docplaster import {Component} from '@angular/core'; -import {NgFor} from '@angular/common'; import {AliasingComponent} from './aliasing.component'; import {InputOutputComponent} from './input-output.component'; @@ -19,7 +18,6 @@ import {ItemOutputComponent} from './item-output.component'; ItemDetailComponent, ItemDetailMetadataComponent, ItemOutputComponent, - NgFor, ], })