-
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(buttons): update angular to standalone (#3919)
- Loading branch information
1 parent
2fcbca5
commit 9c1d77a
Showing
14 changed files
with
169 additions
and
8 deletions.
There are no files selected for viewing
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
static/usage/v7/buttons/basic/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 { IonButton, IonButtons, IonTitle, IonToolbar } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonButton, IonButtons, IonTitle, IonToolbar], | ||
}) | ||
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/buttons/placement/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 { IonButton, IonButtons, IonTitle, IonToolbar } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonButton, IonButtons, IonTitle, IonToolbar], | ||
}) | ||
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
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
8 changes: 8 additions & 0 deletions
8
static/usage/v8/buttons/basic/angular/example_component_html.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,8 @@ | ||
```html | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button>Button</ion-button> | ||
</ion-buttons> | ||
<ion-title>Default Buttons</ion-title> | ||
</ion-toolbar> | ||
``` |
12 changes: 12 additions & 0 deletions
12
static/usage/v8/buttons/basic/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 { IonButton, IonButtons, IonTitle, IonToolbar } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonButton, IonButtons, IonTitle, IonToolbar], | ||
}) | ||
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
21 changes: 21 additions & 0 deletions
21
static/usage/v8/buttons/placement/angular/example_component_html.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,21 @@ | ||
```html | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button>Start</ion-button> | ||
</ion-buttons> | ||
<ion-title>Buttons</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button>End</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
|
||
<ion-toolbar> | ||
<ion-buttons slot="secondary"> | ||
<ion-button>Secondary</ion-button> | ||
</ion-buttons> | ||
<ion-title>Buttons</ion-title> | ||
<ion-buttons slot="primary"> | ||
<ion-button>Primary</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
``` |
12 changes: 12 additions & 0 deletions
12
static/usage/v8/buttons/placement/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 { IonButton, IonButtons, IonTitle, IonToolbar } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: 'example.component.html', | ||
styleUrls: ['example.component.css'], | ||
imports: [IonButton, IonButtons, IonTitle, IonToolbar], | ||
}) | ||
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
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