diff --git a/static/usage/v7/refresher/advanced/angular/example_component_ts.md b/static/usage/v7/refresher/advanced/angular/example_component_ts.md index 98888ac14fa..9d1f3a5f199 100644 --- a/static/usage/v7/refresher/advanced/angular/example_component_ts.md +++ b/static/usage/v7/refresher/advanced/angular/example_component_ts.md @@ -1,6 +1,9 @@ ```ts import { Component } from '@angular/core'; +import { addIcons } from 'ionicons'; +import { ellipse } from 'ionicons/icons'; + @Component({ selector: 'app-example', templateUrl: 'example.component.html', @@ -24,6 +27,15 @@ export class ExampleComponent { ]; public items = []; + 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({ ellipse }); + } + ngOnInit() { this.addItems(5); } diff --git a/static/usage/v7/refresher/advanced/index.md b/static/usage/v7/refresher/advanced/index.md index cfc19169444..feb26191887 100644 --- a/static/usage/v7/refresher/advanced/index.md +++ b/static/usage/v7/refresher/advanced/index.md @@ -1,6 +1,7 @@ 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 react_main_tsx from './react/main_tsx.md'; import react_main_css from './react/main_css.md'; @@ -14,7 +15,15 @@ import angular_example_component_css from './angular/example_component_css.md';