Skip to content

Commit 75bff6c

Browse files
committed
docs(gestures): update angular to standalone
1 parent c5926f0 commit 75bff6c

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

static/usage/v7/gestures/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 { ChangeDetectorRef, Component, ElementRef, ViewChild } from '@angular/core';
3+
import { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle } from '@ionic/angular/standalone';
34
import type { GestureDetail } from '@ionic/angular';
45
import { GestureController, IonCard } from '@ionic/angular';
56

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

static/usage/v7/gestures/double-click/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 { IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import { GestureController, IonCard } from '@ionic/angular';
45

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

static/usage/v8/gestures/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 { ChangeDetectorRef, Component, ElementRef, ViewChild } from '@angular/core';
3+
import { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle } from '@ionic/angular/standalone';
34
import type { GestureDetail } from '@ionic/angular';
45
import { GestureController, IonCard } from '@ionic/angular';
56

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

static/usage/v8/gestures/double-click/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 { IonCard, IonCardContent } from '@ionic/angular/standalone';
34
import { GestureController, IonCard } from '@ionic/angular';
45

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

0 commit comments

Comments
 (0)