Browse Source

docs: update the example in theming

pull/11214/head
bnymncoskuner 5 years ago
parent
commit
0f52f4ee8f
  1. 6
      docs/en/UI/Angular/Theming.md

6
docs/en/UI/Angular/Theming.md

@ -241,11 +241,11 @@ export class AppComponent {
constructor(private userMenu: UserMenuService, private router: Router) { constructor(private userMenu: UserMenuService, private router: Router) {
this.userMenu.addItems([ this.userMenu.addItems([
{ {
id: 'UserMenu.Reports', id: 'UserMenu.MyAccount',
order: 1, order: 1,
// HTML example // HTML example
html: `<a class="dropdown-item pointer">Reports</a>`, html: `<a class="dropdown-item pointer">My account</a>`,
// text template example // text template example
textTemplate: { textTemplate: {
@ -256,7 +256,7 @@ export class AppComponent {
component: UserMenuItemComponent, component: UserMenuItemComponent,
action: () => { action: () => {
this.router.navigateByUrl('/account/reports'); this.router.navigateByUrl('/account/manage');
}, },
}, },
]); ]);

Loading…
Cancel
Save