diff --git a/static/usage/v7/buttons/basic/angular.md b/static/usage/v7/buttons/basic/angular/example_component_html.md similarity index 100% rename from static/usage/v7/buttons/basic/angular.md rename to static/usage/v7/buttons/basic/angular/example_component_html.md diff --git a/static/usage/v7/buttons/basic/angular/example_component_ts.md b/static/usage/v7/buttons/basic/angular/example_component_ts.md new file mode 100644 index 00000000000..dd7b99299de --- /dev/null +++ b/static/usage/v7/buttons/basic/angular/example_component_ts.md @@ -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 {} +``` diff --git a/static/usage/v7/buttons/basic/index.md b/static/usage/v7/buttons/basic/index.md index f9c82463e84..157f06ed9fb 100644 --- a/static/usage/v7/buttons/basic/index.md +++ b/static/usage/v7/buttons/basic/index.md @@ -3,6 +3,22 @@ import Playground from '@site/src/components/global/Playground'; import javascript from './javascript.md'; import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v7/buttons/placement/angular.md b/static/usage/v7/buttons/placement/angular/example_component_html.md similarity index 100% rename from static/usage/v7/buttons/placement/angular.md rename to static/usage/v7/buttons/placement/angular/example_component_html.md diff --git a/static/usage/v7/buttons/placement/angular/example_component_ts.md b/static/usage/v7/buttons/placement/angular/example_component_ts.md new file mode 100644 index 00000000000..dd7b99299de --- /dev/null +++ b/static/usage/v7/buttons/placement/angular/example_component_ts.md @@ -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 {} +``` diff --git a/static/usage/v7/buttons/placement/index.md b/static/usage/v7/buttons/placement/index.md index 9d2fd3dcfec..38e38bc2562 100644 --- a/static/usage/v7/buttons/placement/index.md +++ b/static/usage/v7/buttons/placement/index.md @@ -3,6 +3,22 @@ import Playground from '@site/src/components/global/Playground'; import javascript from './javascript.md'; import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v7/buttons/types/angular/example_component_ts.md b/static/usage/v7/buttons/types/angular/example_component_ts.md index 7af150bd169..94e3d6ef6fa 100644 --- a/static/usage/v7/buttons/types/angular/example_component_ts.md +++ b/static/usage/v7/buttons/types/angular/example_component_ts.md @@ -1,5 +1,14 @@ ```ts import { Component } from '@angular/core'; +import { + IonBackButton, + IonButton, + IonButtons, + IonIcon, + IonMenuButton, + IonTitle, + IonToolbar, +} from '@ionic/angular/standalone'; import { addIcons } from 'ionicons'; import { create, ellipsisHorizontal, ellipsisVertical, helpCircle, personCircle, search, star } from 'ionicons/icons'; @@ -8,6 +17,7 @@ import { create, ellipsisHorizontal, ellipsisVertical, helpCircle, personCircle, selector: 'app-example', templateUrl: 'example.component.html', styleUrls: ['example.component.css'], + imports: [IonBackButton, IonButton, IonButtons, IonIcon, IonMenuButton, IonTitle, IonToolbar], }) export class ExampleComponent { constructor() { diff --git a/static/usage/v8/buttons/basic/angular/example_component_html.md b/static/usage/v8/buttons/basic/angular/example_component_html.md new file mode 100644 index 00000000000..901587bfef1 --- /dev/null +++ b/static/usage/v8/buttons/basic/angular/example_component_html.md @@ -0,0 +1,8 @@ +```html + + + Button + + Default Buttons + +``` diff --git a/static/usage/v8/buttons/basic/angular/example_component_ts.md b/static/usage/v8/buttons/basic/angular/example_component_ts.md new file mode 100644 index 00000000000..dd7b99299de --- /dev/null +++ b/static/usage/v8/buttons/basic/angular/example_component_ts.md @@ -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 {} +``` diff --git a/static/usage/v8/buttons/basic/index.md b/static/usage/v8/buttons/basic/index.md index 0be42104118..2f84065d601 100644 --- a/static/usage/v8/buttons/basic/index.md +++ b/static/usage/v8/buttons/basic/index.md @@ -3,6 +3,22 @@ import Playground from '@site/src/components/global/Playground'; import javascript from './javascript.md'; import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v8/buttons/placement/angular/example_component_html.md b/static/usage/v8/buttons/placement/angular/example_component_html.md new file mode 100644 index 00000000000..8273655ad49 --- /dev/null +++ b/static/usage/v8/buttons/placement/angular/example_component_html.md @@ -0,0 +1,21 @@ +```html + + + Start + + Buttons + + End + + + + + + Secondary + + Buttons + + Primary + + +``` diff --git a/static/usage/v8/buttons/placement/angular/example_component_ts.md b/static/usage/v8/buttons/placement/angular/example_component_ts.md new file mode 100644 index 00000000000..dd7b99299de --- /dev/null +++ b/static/usage/v8/buttons/placement/angular/example_component_ts.md @@ -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 {} +``` diff --git a/static/usage/v8/buttons/placement/index.md b/static/usage/v8/buttons/placement/index.md index 3420c564089..bdb882d7bfe 100644 --- a/static/usage/v8/buttons/placement/index.md +++ b/static/usage/v8/buttons/placement/index.md @@ -3,6 +3,22 @@ import Playground from '@site/src/components/global/Playground'; import javascript from './javascript.md'; import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v8/buttons/types/angular/example_component_ts.md b/static/usage/v8/buttons/types/angular/example_component_ts.md index 7af150bd169..94e3d6ef6fa 100644 --- a/static/usage/v8/buttons/types/angular/example_component_ts.md +++ b/static/usage/v8/buttons/types/angular/example_component_ts.md @@ -1,5 +1,14 @@ ```ts import { Component } from '@angular/core'; +import { + IonBackButton, + IonButton, + IonButtons, + IonIcon, + IonMenuButton, + IonTitle, + IonToolbar, +} from '@ionic/angular/standalone'; import { addIcons } from 'ionicons'; import { create, ellipsisHorizontal, ellipsisVertical, helpCircle, personCircle, search, star } from 'ionicons/icons'; @@ -8,6 +17,7 @@ import { create, ellipsisHorizontal, ellipsisVertical, helpCircle, personCircle, selector: 'app-example', templateUrl: 'example.component.html', styleUrls: ['example.component.css'], + imports: [IonBackButton, IonButton, IonButtons, IonIcon, IonMenuButton, IonTitle, IonToolbar], }) export class ExampleComponent { constructor() {