Skip to content

Commit 1a8e0f8

Browse files
committed
docs(picker-legacy): update angular to standalone
1 parent c5926f0 commit 1a8e0f8

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

static/usage/v8/picker-legacy/controller/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 { IonButton } from '@ionic/angular/standalone';
34
import { PickerController } from '@ionic/angular';
45

56
@Component({
67
selector: 'app-example',
78
templateUrl: 'example.component.html',
9+
imports: [IonButton],
810
})
911
export class ExampleComponent {
1012
constructor(private pickerCtrl: PickerController) {}

static/usage/v8/picker-legacy/inline/isOpen/angular/example_component_ts.md

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

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
8+
imports: [IonButton, IonPickerLegacy],
79
})
810
export class ExampleComponent {
911
isPickerOpen = false;
@@ -39,7 +41,7 @@ export class ExampleComponent {
3941
},
4042
{
4143
text: 'Confirm',
42-
handler: (value) => {
44+
handler: (value: any) => {
4345
console.log(`You selected: ${value.languages.value}`);
4446
},
4547
},

static/usage/v8/picker-legacy/inline/trigger/angular/example_component_ts.md

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

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
8+
imports: [IonButton, IonPickerLegacy],
79
})
810
export class ExampleComponent {
911
public pickerColumns = [
@@ -37,7 +39,7 @@ export class ExampleComponent {
3739
},
3840
{
3941
text: 'Confirm',
40-
handler: (value) => {
42+
handler: (value: any) => {
4143
console.log(`You selected: ${value.languages.value}`);
4244
},
4345
},

static/usage/v8/picker-legacy/multiple-column/angular/example_component_ts.md

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

45
@Component({
56
selector: 'app-example',
67
templateUrl: 'example.component.html',
8+
imports: [IonButton, IonPickerLegacy],
79
})
810
export class ExampleComponent {
911
public pickerColumns = [
@@ -67,7 +69,7 @@ export class ExampleComponent {
6769
},
6870
{
6971
text: 'Confirm',
70-
handler: (value) => {
72+
handler: (value: any) => {
7173
console.log(`You selected a ${value.crust.text} pizza with ${value.meat.text} and ${value.veggies.text}`);
7274
},
7375
},

0 commit comments

Comments
 (0)