-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.component.ts
76 lines (72 loc) · 1.86 KB
/
app.component.ts
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import {CommonModule} from '@angular/common';
import {Component} from '@angular/core';
import {RouterLink, RouterLinkActive} from '@angular/router';
import {
IonApp,
IonSplitPane,
IonMenu,
IonContent,
IonList,
IonListHeader,
IonNote,
IonMenuToggle,
IonItem,
IonIcon,
IonLabel,
IonRouterOutlet,
IonRouterLink
} from '@ionic/angular/standalone';
import {addIcons} from 'ionicons';
import {
mailOutline,
mailSharp,
paperPlaneOutline,
paperPlaneSharp,
heartOutline,
heartSharp,
archiveOutline,
archiveSharp,
trashOutline,
trashSharp,
warningOutline,
warningSharp,
bookmarkOutline,
bookmarkSharp
} from 'ionicons/icons';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
standalone: true,
imports: [RouterLink, RouterLinkActive, CommonModule, IonApp, IonSplitPane, IonMenu, IonContent, IonList, IonListHeader, IonNote, IonMenuToggle, IonItem, IonIcon, IonLabel, IonRouterLink, IonRouterOutlet],
})
export class AppComponent {
public appPages = [
{title: 'Home', url: '/home', icon: 'mail'},
{title: 'Answers', url: '/answers', icon: 'mail' },
{title: 'Outbox', url: '/folder/outbox', icon: 'paper-plane'},
{title: 'Favorites', url: '/folder/favorites', icon: 'heart'},
{title: 'Archived', url: '/folder/archived', icon: 'archive'},
{title: 'Trash', url: '/folder/trash', icon: 'trash'},
{title: 'Avatar Settings', url: '/avatar-settings', icon: 'warning'},
{title: 'Login', url: '/login-screen', icon: 'warning'},
];
constructor() {
addIcons({
mailOutline,
mailSharp,
paperPlaneOutline,
paperPlaneSharp,
heartOutline,
heartSharp,
archiveOutline,
archiveSharp,
trashOutline,
trashSharp,
warningOutline,
warningSharp,
bookmarkOutline,
bookmarkSharp
});
}
}