diff --git a/static/usage/v7/img/basic/angular.md b/static/usage/v7/img/basic/angular/example_component_html.md similarity index 100% rename from static/usage/v7/img/basic/angular.md rename to static/usage/v7/img/basic/angular/example_component_html.md diff --git a/static/usage/v7/img/basic/angular/example_component_ts.md b/static/usage/v7/img/basic/angular/example_component_ts.md new file mode 100644 index 00000000000..bec3c992a7c --- /dev/null +++ b/static/usage/v7/img/basic/angular/example_component_ts.md @@ -0,0 +1,12 @@ +```ts +import { Component } from '@angular/core'; +import { IonImg } from '@ionic/angular/standalone'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], + imports: [IonImg], +}) +export class ExampleComponent {} +``` diff --git a/static/usage/v7/img/basic/index.md b/static/usage/v7/img/basic/index.md index 97f57f40ec2..1a0e44f7bb8 100644 --- a/static/usage/v7/img/basic/index.md +++ b/static/usage/v7/img/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/img/basic/angular.md b/static/usage/v8/img/basic/angular/example_component_html.md similarity index 100% rename from static/usage/v8/img/basic/angular.md rename to static/usage/v8/img/basic/angular/example_component_html.md diff --git a/static/usage/v8/img/basic/angular/example_component_ts.md b/static/usage/v8/img/basic/angular/example_component_ts.md new file mode 100644 index 00000000000..bec3c992a7c --- /dev/null +++ b/static/usage/v8/img/basic/angular/example_component_ts.md @@ -0,0 +1,12 @@ +```ts +import { Component } from '@angular/core'; +import { IonImg } from '@ionic/angular/standalone'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], + imports: [IonImg], +}) +export class ExampleComponent {} +``` diff --git a/static/usage/v8/img/basic/index.md b/static/usage/v8/img/basic/index.md index 3e14666bad2..ca4bb366ba3 100644 --- a/static/usage/v8/img/basic/index.md +++ b/static/usage/v8/img/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'; + +