Skip to content

Commit 487ba12

Browse files
committed
fix(igx-ts): fix side nav route data text
1 parent ff24df0 commit 487ba12

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/igx-templates/igx-ts-legacy/projects/side-nav/files/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class AppComponent implements OnInit {
2424
for (const route of routes) {
2525
if (route.path && route.data && route.path.indexOf('*') === -1) {
2626
this.topNavLinks.push({
27-
name: route.data.text,
27+
name: route.data['text'],
2828
path: '/' + route.path
2929
});
3030
}

packages/igx-templates/igx-ts/projects/side-nav-auth/files/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class AppComponent implements OnInit {
4848
for (const route of routes) {
4949
if (route.path && route.data && route.path.indexOf('*') === -1) {
5050
this.topNavLinks.push({
51-
name: route.data.text,
51+
name: route.data['text'],
5252
path: '/' + route.path
5353
});
5454
}

0 commit comments

Comments
 (0)