Skip to content

Commit 8b9e21d

Browse files
committedNov 25, 2022
Add Type on Items
1 parent 09611f0 commit 8b9e21d

File tree

1 file changed

+16
-2
lines changed
  • angular/src/app/modules/application/example-bootstrap/00-main

1 file changed

+16
-2
lines changed
 

‎angular/src/app/modules/application/example-bootstrap/00-main/items.ts

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
// eslint-disable-next-line
2-
export const ITEMS: any[] =
1+
export class Item {
2+
3+
id: number;
4+
name: string;
5+
link: string;
6+
icon: string;
7+
8+
constructor() {
9+
this.id = 0;
10+
this.name = '';
11+
this.link = '';
12+
this.icon = '';
13+
}
14+
}
15+
16+
export const ITEMS: Item[] =
317
[
418
{ id: 1, name: 'Accordions', link: 'accordions', icon: 'far fa-address-card' },
519
{ id: 2, name: 'Alerts', link: 'alerts', icon: 'fas fa-user' },

0 commit comments

Comments
 (0)
Please sign in to comment.