Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 613 Bytes

File metadata and controls

24 lines (22 loc) · 613 Bytes
import { Component } from '@angular/core';
import { IonIcon, IonText } from '@ionic/angular/standalone';

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

@Component({
  selector: 'app-example',
  templateUrl: 'example.component.html',
  styleUrls: ['example.component.css'],
  imports: [IonIcon, IonText],
})
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({ warning });
  }
}