diff --git a/static/usage/v7/modal/custom-dialogs/angular/example_component_ts.md b/static/usage/v7/modal/custom-dialogs/angular/example_component_ts.md new file mode 100644 index 00000000000..387bce95476 --- /dev/null +++ b/static/usage/v7/modal/custom-dialogs/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { personCircle } from 'ionicons/icons'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], +}) +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({ personCircle }); + } +} +``` diff --git a/static/usage/v7/modal/custom-dialogs/index.md b/static/usage/v7/modal/custom-dialogs/index.md index 2aec2d39f33..9405b377692 100644 --- a/static/usage/v7/modal/custom-dialogs/index.md +++ b/static/usage/v7/modal/custom-dialogs/index.md @@ -1,6 +1,8 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; + import vue from './vue.md'; import react_main_tsx from './react/main_tsx.md'; @@ -8,11 +10,20 @@ import react_main_css from './react/main_css.md'; import angular_global_css from './angular/global_css.md'; import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md';