File tree Expand file tree Collapse file tree 3 files changed +19
-8
lines changed
static/usage/v8/icon/basic Expand file tree Collapse file tree 3 files changed +19
-8
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
import { Component } from ' @angular/core' ;
3
3
import { IonIcon } from ' @ionic/angular/standalone' ;
4
4
5
+ import { addIcons } from ' ionicons' ;
6
+ import { logoIonic } from ' ionicons/icons' ;
7
+
5
8
@Component ({
6
9
selector: ' app-example' ,
7
10
templateUrl: ' example.component.html' ,
8
11
styleUrls: [' example.component.css' ],
9
12
imports: [IonIcon ],
10
13
})
11
- export class ExampleComponent {}
14
+ export class ExampleComponent {
15
+ constructor () {
16
+ /**
17
+ * Any icons you want to use in your application
18
+ * can be registered in app.component.ts and then
19
+ * referenced by name anywhere in your application.
20
+ */
21
+ addIcons ({ logoIonic });
22
+ }
23
+ }
12
24
```
Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ import angular_example_component_ts from './angular/example_component_ts.md';
12
12
<Playground
13
13
version="8"
14
14
code={{
15
- javascript,
15
+ javascript: {
16
+ files: {
17
+ 'index.html': javascript_index_html,
18
+ 'index.ts': javascript_index_ts,
19
+ },
20
+ },
16
21
react,
17
22
vue,
18
23
angular: {
You can’t perform that action at this time.
0 commit comments