-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(select): update angular to standalone (#3963)
- Loading branch information
1 parent
6512fcc
commit 5c0f307
Showing
97 changed files
with
858 additions
and
158 deletions.
There are no files selected for viewing
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/select/basic/multiple-selection/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonList, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonList, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
...usage/v7/select/basic/responding-to-interaction/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/select/basic/single-selection/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonList, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonList, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/select/customization/button-text/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonList, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonList, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
...age/v7/select/customization/custom-toggle-icons/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonList, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
import { addIcons } from 'ionicons'; | ||
import { add, remove } from 'ionicons/icons'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonList, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent { | ||
constructor() { | ||
/** | ||
* Any icons you want to use in your application | ||
* can be registered in app.component.ts and then | ||
* referenced by name anywhere in your application. | ||
*/ | ||
addIcons({ add, remove }); | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...sage/v7/select/customization/icon-flip-behavior/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonList, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
import { addIcons } from 'ionicons'; | ||
import { caretDownSharp } from 'ionicons/icons'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonList, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
export class ExampleComponent { | ||
constructor() { | ||
/** | ||
* Any icons you want to use in your application | ||
* can be registered in app.component.ts and then | ||
* referenced by name anywhere in your application. | ||
*/ | ||
addIcons({ caretDownSharp }); | ||
} | ||
} | ||
``` |
3 changes: 3 additions & 0 deletions
3
...usage/v7/select/customization/interface-options/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ic/usage/v7/select/customization/styling-select/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/select/fill/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/select/interfaces/action-sheet/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonList, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonList, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/select/interfaces/popover/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonList, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonList, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/select/justify/angular/example_component_ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { IonItem, IonSelect, IonSelectOption } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonItem, IonSelect, IonSelectOption], | ||
}) | ||
export class ExampleComponent {} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.