import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class MenuService { constructor() { } getMenu(): Array { const menu = [ { path: 'contact', name: 'Contact Details', children: [ { path: 'history/:contactId', name: 'History'}, { path: 'email', name: 'Email' }, { path: 'notes', name: 'Notes' }, { path: 'tasks', name: 'Tasks' } ] }, { path: 'Home', name: 'Contacts CRM', children: [ { path: 'leads', name: 'Leads' }, { path: 'list', name: 'Contacts' }, { path: 'company', name: 'Companies' } ] }, { path: 'Home/:loggedId', name: 'Home', children: [ { path: 'leads', name: 'Leads' }, { path: 'list', name: 'Contacts'}, { path: 'company', name: 'Companies' } ] }, { path: 'Home/:loggedId/:loggedCompanyId', name: 'Home', children: [ { path: 'leads', name: 'Leads' }, { path: 'list', name: 'Contacts' }, { path: 'company', name: 'Companies' } ] }, // { path: 'Home', component: ContactHomeComponent} { path: 'history', name: 'History' }, { path: 'email', name: 'Email' }, { path: 'notes', name: 'Notes' }, { path: 'Home', name: 'Home' }, { path: 'contact', name: 'Contact' }, { path: 'notes', name: 'Note' }, { path: 'email', name: 'Email' }, { path: 'task', name: 'Task' }, { path: 'overview', name: 'Overview' }, { path: 'contactExport', name: 'Export' } // { name: 'home', path: './home', children: [] }, // { // name: 'stores', // path: './stores', // children: [ // { // name: 'books', // path: './books', // children: [ // { // name: 'THE FELLOWSHIP OF THE RING Details', // path: './book1' // }, // { // name: 'THE RETURN OF THE KING', // path: './book2' // }, // { // name: 'Harry Potter and the Philosopher\'s Stone', // path: './book3' // }, // { // name: 'Harry Potter and the Chamber of Secrets', // path: './book4' // } // ] // } // ] // }, ]; return menu; } }