Skip to content

Commit 41ccb68

Browse files
docs(popover): update angular to standalone (#3952)
1 parent 9decc6d commit 41ccb68

40 files changed

+250
-68
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 { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';
34

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
78
styleUrls: ['example.component.css'],
9+
imports: [IonButton, IonContent, IonPopover],
810
})
911
export class ExampleComponent {}
1012
```
File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
styleUrls: ['example.component.css'],
9+
imports: [IonButton, IonContent, IonPopover],
10+
})
11+
export class ExampleComponent {}
12+
```

static/usage/v7/popover/customization/sizing/index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@ import Playground from '@site/src/components/global/Playground';
33
import javascript from './javascript.md';
44
import react from './react.md';
55
import vue from './vue.md';
6-
import angular from './angular.md';
6+
7+
import angular_example_component_html from './angular/example_component_html.md';
8+
import angular_example_component_ts from './angular/example_component_ts.md';
79

810
<Playground
911
version="7"
1012
size="300px"
11-
code={{ javascript, react, vue, angular }}
13+
code={{
14+
javascript,
15+
react,
16+
vue,
17+
angular: {
18+
files: {
19+
'src/app/example.component.html': angular_example_component_html,
20+
'src/app/example.component.ts': angular_example_component_ts,
21+
},
22+
},
23+
}}
1224
src="usage/v7/popover/customization/sizing/demo.html"
1325
/>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
styleUrls: ['example.component.css'],
9+
imports: [IonButton, IonContent, IonPopover],
10+
})
11+
export class ExampleComponent {}
12+
```

static/usage/v7/popover/customization/styling/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import react_main_tsx from './react/main_tsx.md';
77
import react_main_css from './react/main_css.md';
88

99
import angular_example_component_html from './angular/example_component_html.md';
10+
import angular_example_component_ts from './angular/example_component_ts.md';
1011
import angular_global_css from './angular/global_css.md';
1112

1213
<Playground
@@ -24,6 +25,7 @@ import angular_global_css from './angular/global_css.md';
2425
angular: {
2526
files: {
2627
'src/app/example.component.html': angular_example_component_html,
28+
'src/app/example.component.ts': angular_example_component_ts,
2729
'src/global.css': angular_global_css,
2830
},
2931
},
File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonButton, IonContent, IonItem, IonList, IonPopover } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
styleUrls: ['example.component.css'],
9+
imports: [IonButton, IonContent, IonItem, IonList, IonPopover],
10+
})
11+
export class ExampleComponent {}
12+
```

static/usage/v7/popover/nested/index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@ import Playground from '@site/src/components/global/Playground';
33
import javascript from './javascript.md';
44
import react from './react.md';
55
import vue from './vue.md';
6-
import angular from './angular.md';
6+
7+
import angular_example_component_html from './angular/example_component_html.md';
8+
import angular_example_component_ts from './angular/example_component_ts.md';
79

810
<Playground
911
version="7"
1012
size="medium"
11-
code={{ javascript, react, vue, angular }}
13+
code={{
14+
javascript,
15+
react,
16+
vue,
17+
angular: {
18+
files: {
19+
'src/app/example.component.html': angular_example_component_html,
20+
'src/app/example.component.ts': angular_example_component_ts,
21+
},
22+
},
23+
}}
1224
src="usage/v7/popover/nested/demo.html"
1325
/>
File renamed without changes.

0 commit comments

Comments
 (0)