Skip to content

Commit a8b0b56

Browse files
committed
docs(range): update angular to standalone
1 parent c5926f0 commit a8b0b56

Some content is hidden

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

44 files changed

+430
-24
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```html
2+
<ion-range aria-label="Volume"></ion-range>
3+
```
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 { IonRange } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonRange],
9+
})
10+
export class ExampleComponent {}
11+
```

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ import Playground from '@site/src/components/global/Playground';
55
import javascript from './javascript.md';
66
import react from './react.md';
77
import vue from './vue.md';
8-
import angular from './angular.md';
98

10-
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/range/basic/demo.html" />
9+
import angular_example_component_html from './angular/example_component_html.md';
10+
import angular_example_component_ts from './angular/example_component_ts.md';
11+
12+
<Playground
13+
version="7"
14+
code={{
15+
javascript,
16+
react,
17+
vue,
18+
angular: {
19+
files: {
20+
'src/app/example.component.html': angular_example_component_html,
21+
'src/app/example.component.ts': angular_example_component_ts,
22+
},
23+
},
24+
}}
25+
src="usage/v7/range/basic/demo.html"
26+
/>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```html
2+
<ion-range aria-label="Dual Knobs Range" [dualKnobs]="true" [value]="{ lower: 20, upper: 80 }"></ion-range>
3+
```
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 { IonRange } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonRange],
9+
})
10+
export class ExampleComponent {}
11+
```

static/usage/v7/range/dual-knobs/index.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ 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/range/dual-knobs/demo.html" />
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/range/dual-knobs/demo.html"
24+
/>

static/usage/v7/range/ion-change-event/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 { IonRange } from '@ionic/angular/standalone';
34

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

67
@Component({
78
selector: 'app-example',
89
templateUrl: 'example.component.html',
10+
imports: [IonRange],
911
})
1012
export class ExampleComponent {
1113
onIonChange(ev: Event) {

static/usage/v7/range/ion-knob-move-event/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 { IonRange } from '@ionic/angular/standalone';
34

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

67
@Component({
78
selector: 'app-example',
89
templateUrl: 'example.component.html',
10+
imports: [IonRange],
911
})
1012
export class ExampleComponent {
1113
onIonKnobMoveStart(ev: Event) {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
```html
2+
<ion-range>
3+
<div slot="label">Label with <ion-text color="primary">custom HTML</ion-text></div>
4+
</ion-range>
5+
```
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 { IonRange, IonText } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonRange, IonText],
9+
})
10+
export class ExampleComponent {}
11+
```

0 commit comments

Comments
 (0)