Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 552 Bytes

example_component_ts.md

File metadata and controls

22 lines (20 loc) · 552 Bytes
import { Component } from '@angular/core';

import { addIcons } from 'ionicons';
import { close, closeCircle, pin } 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({ close, closeCircle, pin });
  }
}