Skip to content

Commit fcc9a3c

Browse files
committed
docs(animations): update angular to standalone
1 parent c5926f0 commit fcc9a3c

File tree

16 files changed

+48
-0
lines changed

16 files changed

+48
-0
lines changed

static/usage/v7/animations/basic/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
```ts
22
import { Component, ElementRef, ViewChildren, ViewChild } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { QueryList } from '@angular/core';
45
import type { Animation } from '@ionic/angular';
56
import { AnimationController, IonCard } from '@ionic/angular';
67

78
@Component({
89
selector: 'app-example',
910
templateUrl: 'example.component.html',
11+
imports: [IonButton, IonCard, IonCardContent],
1012
})
1113
export class ExampleComponent {
1214
@ViewChild(IonCard, { read: ElementRef }) card: ElementRef<HTMLIonCardElement>;

static/usage/v7/animations/before-and-after-hooks/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
```ts
22
import { Component, ElementRef, ViewChildren } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { QueryList } from '@angular/core';
45
import type { Animation } from '@ionic/angular';
56
import { AnimationController, IonCard } from '@ionic/angular';
67

78
@Component({
89
selector: 'app-example',
910
templateUrl: 'example.component.html',
11+
imports: [IonButton, IonCard, IonCardContent],
1012
})
1113
export class ExampleComponent {
1214
@ViewChildren(IonCard, { read: ElementRef }) cardElements: QueryList<ElementRef<HTMLIonCardElement>>;

static/usage/v7/animations/chain/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
```ts
22
import { Component, ElementRef, ViewChildren } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { QueryList } from '@angular/core';
45
import type { Animation } from '@ionic/angular';
56
import { AnimationController, IonCard } from '@ionic/angular';
67

78
@Component({
89
selector: 'app-example',
910
templateUrl: 'example.component.html',
11+
imports: [IonButton, IonCard, IonCardContent],
1012
})
1113
export class ExampleComponent {
1214
@ViewChildren(IonCard, { read: ElementRef }) cardElements: QueryList<ElementRef<HTMLIonCardElement>>;

static/usage/v7/animations/gesture/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
```ts
22
import { Component, ElementRef, ViewChildren, ViewChild } from '@angular/core';
3+
import { IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import { AnimationController, GestureController, IonCard } from '@ionic/angular';
45
import type { Animation, Gesture, GestureDetail } from '@ionic/angular';
56

67
@Component({
78
selector: 'app-example',
89
templateUrl: 'example.component.html',
910
styleUrls: ['example.component.css'],
11+
imports: [IonCard, IonCardContent],
1012
})
1113
export class ExampleComponent {
1214
@ViewChild(IonCard, { read: ElementRef }) card: ElementRef<HTMLIonCardElement>;

static/usage/v7/animations/group/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
```ts
22
import { Component, ElementRef, ViewChildren } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { QueryList } from '@angular/core';
45
import type { Animation } from '@ionic/angular';
56
import { AnimationController, IonCard } from '@ionic/angular';
67

78
@Component({
89
selector: 'app-example',
910
templateUrl: 'example.component.html',
11+
imports: [IonButton, IonCard, IonCardContent],
1012
})
1113
export class ExampleComponent {
1214
@ViewChildren(IonCard, { read: ElementRef }) cardElements: QueryList<ElementRef<HTMLIonCardElement>>;

static/usage/v7/animations/keyframes/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
```ts
22
import { Component, ElementRef, ViewChild } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { Animation } from '@ionic/angular';
45
import { AnimationController, IonCard, IonCardContent } from '@ionic/angular';
56

67
@Component({
78
selector: 'app-example',
89
templateUrl: 'example.component.html',
10+
imports: [IonButton, IonCard, IonCardContent],
911
})
1012
export class ExampleComponent {
1113
@ViewChild(IonCard, { read: ElementRef }) card: ElementRef<HTMLIonCardElement>;

static/usage/v7/animations/modal-override/angular/example_component_ts.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
```ts
22
import { Component, ViewChild } from '@angular/core';
3+
import {
4+
IonButton,
5+
IonButtons,
6+
IonContent,
7+
IonHeader,
8+
IonModal,
9+
IonTitle,
10+
IonToolbar,
11+
} from '@ionic/angular/standalone';
312
import type { IonModal } from '@ionic/angular';
413
import { AnimationController } from '@ionic/angular';
514

615
@Component({
716
selector: 'app-example',
817
templateUrl: 'example.component.html',
18+
imports: [IonButton, IonButtons, IonContent, IonHeader, IonModal, IonTitle, IonToolbar],
919
})
1020
export class ExampleComponent {
1121
@ViewChild('modal', { static: true }) modal: IonModal;

static/usage/v7/animations/preference-based/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
```ts
22
import { Component, ElementRef, ViewChildren, ViewChild } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { QueryList } from '@angular/core';
45
import type { Animation } from '@ionic/angular';
56
import { AnimationController, IonCard } from '@ionic/angular';
@@ -8,6 +9,7 @@ import { AnimationController, IonCard } from '@ionic/angular';
89
selector: 'app-example',
910
templateUrl: 'example.component.html',
1011
styleUrls: ['./example.component.css'],
12+
imports: [IonButton, IonCard, IonCardContent],
1113
})
1214
export class ExampleComponent {
1315
@ViewChild(IonCard, { read: ElementRef }) card: ElementRef<HTMLIonCardElement>;

static/usage/v8/animations/basic/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
```ts
22
import { Component, ElementRef, ViewChildren, ViewChild } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { QueryList } from '@angular/core';
45
import type { Animation } from '@ionic/angular';
56
import { AnimationController, IonCard } from '@ionic/angular';
67

78
@Component({
89
selector: 'app-example',
910
templateUrl: 'example.component.html',
11+
imports: [IonButton, IonCard, IonCardContent],
1012
})
1113
export class ExampleComponent {
1214
@ViewChild(IonCard, { read: ElementRef }) card: ElementRef<HTMLIonCardElement>;

static/usage/v8/animations/before-and-after-hooks/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
```ts
22
import { Component, ElementRef, ViewChildren } from '@angular/core';
3+
import { IonButton, IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import type { QueryList } from '@angular/core';
45
import type { Animation } from '@ionic/angular';
56
import { AnimationController, IonCard } from '@ionic/angular';
67

78
@Component({
89
selector: 'app-example',
910
templateUrl: 'example.component.html',
11+
imports: [IonButton, IonCard, IonCardContent],
1012
})
1113
export class ExampleComponent {
1214
@ViewChildren(IonCard, { read: ElementRef }) cardElements: QueryList<ElementRef<HTMLIonCardElement>>;

0 commit comments

Comments
 (0)