import { Component } from '@angular/core';
import {
IonButton,
IonIcon,
IonItem,
IonLabel,
IonList,
IonListHeader,
IonSkeletonText,
IonThumbnail,
} from '@ionic/angular/standalone';
import { addIcons } from 'ionicons';
import { musicalNotes } from 'ionicons/icons';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonIcon, IonItem, IonLabel, IonList, IonListHeader, IonSkeletonText, IonThumbnail],
})
export class ExampleComponent {
public loaded = false;
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({ musicalNotes });
}
}
example_component_ts.md
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.