Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { Component, EnvironmentInjector, inject } from '@angular/core'; import { IonTabs, IonTabBar, IonTabButton, IonIcon, IonLabel } from '@ionic/angular/standalone'; import { addIcons } from 'ionicons'; import { listSharp, pencilSharp } from 'ionicons/icons'; import pageIdentifier, { PageKey, PageConfig } from '@shared/components/tabs/tabs.identifier'; @Component({ selector: 'app-tabs', templateUrl: 'tabs.page.html', styleUrls: ['tabs.page.scss'], standalone: true, imports: [IonTabs, IonTabBar, IonTabButton, IonIcon, IonLabel], }) export class TabsPage { public environmentInjector = inject(EnvironmentInjector); childrenIdentifiers: PageConfig[] = []; constructor() { addIcons({ listSharp, pencilSharp }); this.setupTabIdentifiers(); } setupTabIdentifiers = () => { pageIdentifier["listEventPage"].image = listSharp; pageIdentifier["createEventPage"].image = pencilSharp; this.childrenIdentifiers = [pageIdentifier["listEventPage"], pageIdentifier["createEventPage"]] } } |