Skip to content

Commit f81f239

Browse files
committed
docs(angular): update playgrounds with existing angular component file to add standalone imports
1 parent c5926f0 commit f81f239

File tree

269 files changed

+538
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

269 files changed

+538
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonAccordion, IonAccordionGroup, IonItem, IonLabel } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
78
styleUrls: ['example.component.css'],
9+
imports: [IonAccordion, IonAccordionGroup, IonItem, IonLabel]
810
})
911
export class ExampleComponent {}
1012
```

static/usage/v7/accordion/listen-changes/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonAccordion, IonAccordionGroup, IonItem, IonLabel } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
8+
imports: [IonAccordion, IonAccordionGroup, IonItem, IonLabel]
79
})
810
export class ExampleComponent {
911
private values: string[] = ['first', 'second', 'third'];

static/usage/v7/accordion/toggle/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
```ts
22
import { Component, ViewChild } from '@angular/core';
3+
import { IonAccordion, IonAccordionGroup, IonButton, IonItem, IonLabel } from '@ionic/angular/standalone';
34
import { IonAccordionGroup } from '@ionic/angular';
45

56
@Component({
67
selector: 'app-example',
78
templateUrl: 'example.component.html',
9+
imports: [IonAccordion, IonAccordionGroup, IonButton, IonItem, IonLabel]
810
})
911
export class ExampleComponent {
1012
@ViewChild('accordionGroup', { static: true }) accordionGroup: IonAccordionGroup;

static/usage/v7/action-sheet/controller/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 } from '@angular/core';
3+
import { IonButton } from '@ionic/angular/standalone';
34

45
import { ActionSheetController } from '@ionic/angular';
56

67
@Component({
78
selector: 'app-example',
89
templateUrl: 'example.component.html',
10+
imports: [IonButton]
911
})
1012
export class ExampleComponent {
1113
constructor(private actionSheetCtrl: ActionSheetController) {}

static/usage/v7/action-sheet/inline/isOpen/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
8+
imports: [IonActionSheet, IonButton]
79
})
810
export class ExampleComponent {
911
isActionSheetOpen = false;

static/usage/v7/action-sheet/inline/trigger/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
8+
imports: [IonActionSheet, IonButton]
79
})
810
export class ExampleComponent {
911
public actionSheetButtons = [

static/usage/v7/action-sheet/role-info-on-dismiss/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
78
styleUrls: ['./example.component.css'],
9+
imports: [IonActionSheet, IonButton]
810
})
911
export class ExampleComponent {
1012
public actionSheetButtons = [

static/usage/v7/action-sheet/theming/css-properties/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
78
styleUrls: ['./example.component.css'],
9+
imports: [IonActionSheet, IonButton]
810
})
911
export class ExampleComponent {
1012
public actionSheetButtons = [

static/usage/v7/action-sheet/theming/styling/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
78
styleUrls: ['./example.component.css'],
9+
imports: [IonActionSheet, IonButton]
810
})
911
export class ExampleComponent {
1012
public actionSheetButtons = [

static/usage/v7/alert/buttons/angular/example_component_ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
```ts
22
import { Component } from '@angular/core';
3+
import { IonAlert, IonButton } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
8+
imports: [IonAlert, IonButton]
79
})
810
export class ExampleComponent {
911
public alertButtons = [

0 commit comments

Comments
 (0)