Skip to content

Commit

Permalink
docs(icon): update angular to standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Dec 23, 2024
1 parent b9ad11b commit f8e7f26
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
6 changes: 0 additions & 6 deletions static/usage/v8/icon/basic/angular.md

This file was deleted.

14 changes: 13 additions & 1 deletion static/usage/v8/icon/basic/angular/example_component_ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@
import { Component } from '@angular/core';
import { IonIcon } from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { logoIonic } from 'ionicons/icons';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonIcon],
})
export class ExampleComponent {}
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({ logoIonic });
}
}
```
7 changes: 6 additions & 1 deletion static/usage/v8/icon/basic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import angular_example_component_ts from './angular/example_component_ts.md';
<Playground
version="8"
code={{
javascript,
javascript: {
files: {
'index.html': javascript_index_html,
'index.ts': javascript_index_ts,
},
},
react,
vue,
angular: {
Expand Down

0 comments on commit f8e7f26

Please sign in to comment.