From 3ebbe02142cd0ca4919a438e6452c750b7afd350 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 18 Jul 2024 16:21:01 -0400 Subject: [PATCH] docs(modal): update icon playgrounds to use addIcons usage --- .../angular/example_component_ts.md | 22 +++++++++ static/usage/v7/modal/custom-dialogs/index.md | 19 +++++++- .../index_html.md} | 0 .../custom-dialogs/javascript/index_ts.md | 35 ++++++++++++++ .../angular/example_component_ts.md | 22 +++++++++ static/usage/v8/modal/custom-dialogs/index.md | 19 +++++++- .../index_html.md} | 0 .../custom-dialogs/javascript/index_ts.md | 46 +++++++++++++++++++ 8 files changed, 159 insertions(+), 4 deletions(-) create mode 100644 static/usage/v7/modal/custom-dialogs/angular/example_component_ts.md rename static/usage/v7/modal/custom-dialogs/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/modal/custom-dialogs/javascript/index_ts.md create mode 100644 static/usage/v8/modal/custom-dialogs/angular/example_component_ts.md rename static/usage/v8/modal/custom-dialogs/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/modal/custom-dialogs/javascript/index_ts.md 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';