Skip to content

Commit c4fd3e9

Browse files
committed
docs(list): update angular to standalone
1 parent c5926f0 commit c4fd3e9

18 files changed

+324
-12
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
```html
2+
<ion-list>
3+
<ion-item>
4+
<ion-label>Pokémon Yellow</ion-label>
5+
</ion-item>
6+
<ion-item>
7+
<ion-label>Mega Man X</ion-label>
8+
</ion-item>
9+
<ion-item>
10+
<ion-label>The Legend of Zelda</ion-label>
11+
</ion-item>
12+
<ion-item>
13+
<ion-label>Pac-Man</ion-label>
14+
</ion-item>
15+
<ion-item>
16+
<ion-label>Super Mario World</ion-label>
17+
</ion-item>
18+
</ion-list>
19+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonItem, IonLabel, IonList } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonItem, IonLabel, IonList],
9+
})
10+
export class ExampleComponent {}
11+
```

static/usage/v7/list/basic/index.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +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';
76

8-
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/list/basic/demo.html" size="300px" />
7+
import angular_example_component_html from './angular/example_component_html.md';
8+
import angular_example_component_ts from './angular/example_component_ts.md';
9+
10+
<Playground
11+
version="7"
12+
code={{
13+
javascript,
14+
react,
15+
vue,
16+
angular: {
17+
files: {
18+
'src/app/example.component.html': angular_example_component_html,
19+
'src/app/example.component.ts': angular_example_component_ts,
20+
},
21+
},
22+
}}
23+
src="usage/v7/list/basic/demo.html"
24+
size="300px"
25+
/>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
```html
2+
<ion-content color="light">
3+
<ion-list [inset]="true">
4+
<ion-item>
5+
<ion-label>Pokémon Yellow</ion-label>
6+
</ion-item>
7+
<ion-item>
8+
<ion-label>Mega Man X</ion-label>
9+
</ion-item>
10+
<ion-item>
11+
<ion-label>The Legend of Zelda</ion-label>
12+
</ion-item>
13+
<ion-item>
14+
<ion-label>Pac-Man</ion-label>
15+
</ion-item>
16+
<ion-item>
17+
<ion-label>Super Mario World</ion-label>
18+
</ion-item>
19+
</ion-list>
20+
</ion-content>
21+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonContent, IonItem, IonLabel, IonList } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonContent, IonItem, IonLabel, IonList],
9+
})
10+
export class ExampleComponent {}
11+
```

static/usage/v7/list/inset/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"
10-
code={{ javascript, react, vue, angular }}
12+
code={{
13+
javascript,
14+
react,
15+
vue,
16+
angular: {
17+
files: {
18+
'src/app/example.component.html': angular_example_component_html,
19+
'src/app/example.component.ts': angular_example_component_ts,
20+
},
21+
},
22+
}}
1123
src="usage/v7/list/inset/demo.html"
1224
size="350px"
1325
includeIonContent={false}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
```html
2+
<ion-list lines="full">
3+
<ion-item>
4+
<ion-label>Full Lines</ion-label>
5+
</ion-item>
6+
<ion-item>
7+
<ion-label>Full Lines</ion-label>
8+
</ion-item>
9+
<ion-item>
10+
<ion-label>Full Lines</ion-label>
11+
</ion-item>
12+
</ion-list>
13+
14+
<ion-list lines="inset">
15+
<ion-item>
16+
<ion-label>Inset Lines</ion-label>
17+
</ion-item>
18+
<ion-item>
19+
<ion-label>Inset Lines</ion-label>
20+
</ion-item>
21+
<ion-item>
22+
<ion-label>Inset Lines</ion-label>
23+
</ion-item>
24+
</ion-list>
25+
26+
<ion-list lines="none">
27+
<ion-item>
28+
<ion-label>No Lines</ion-label>
29+
</ion-item>
30+
<ion-item>
31+
<ion-label>No Lines</ion-label>
32+
</ion-item>
33+
<ion-item>
34+
<ion-label>No Lines</ion-label>
35+
</ion-item>
36+
</ion-list>
37+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonItem, IonLabel, IonList } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonItem, IonLabel, IonList],
9+
})
10+
export class ExampleComponent {}
11+
```

static/usage/v7/list/lines/index.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +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';
76

8-
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/list/lines/demo.html" size="500px" />
7+
import angular_example_component_html from './angular/example_component_html.md';
8+
import angular_example_component_ts from './angular/example_component_ts.md';
9+
10+
<Playground
11+
version="7"
12+
code={{
13+
javascript,
14+
react,
15+
vue,
16+
angular: {
17+
files: {
18+
'src/app/example.component.html': angular_example_component_html,
19+
'src/app/example.component.ts': angular_example_component_ts,
20+
},
21+
},
22+
}}
23+
src="usage/v7/list/lines/demo.html"
24+
size="500px"
25+
/>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
```html
2+
<ion-list>
3+
<ion-item>
4+
<ion-label>Pokémon Yellow</ion-label>
5+
</ion-item>
6+
<ion-item>
7+
<ion-label>Mega Man X</ion-label>
8+
</ion-item>
9+
<ion-item>
10+
<ion-label>The Legend of Zelda</ion-label>
11+
</ion-item>
12+
<ion-item>
13+
<ion-label>Pac-Man</ion-label>
14+
</ion-item>
15+
<ion-item>
16+
<ion-label>Super Mario World</ion-label>
17+
</ion-item>
18+
</ion-list>
19+
```

0 commit comments

Comments
 (0)