creativetimofficial / material-dashboard-angular2

Material Dashboard Angular
https://demos.creative-tim.com/material-dashboard-angular2/
MIT License
1.01k stars 2.09k forks source link

How to integrate the sidebar menu #66

Open MeriemBo opened 5 years ago

MeriemBo commented 5 years ago

Hello , I'm trying to integrate the package in my code. How can I add just the sidebar menu please ? I added everything as in your code , but the styles aren't working out and I get a plain sidebar menu as the output. thank you

chelaruc commented 5 years ago

@MeriemBo Thank you for using our product. Have you imported our styles?

jeywinlizy commented 5 years ago

I too am trying add a link in the side bar to a new component (customer) I have created. I have placed the routing link for this new one along with the other as shown below. But unlike the other existing Routes, am not able to click this new link customer. Please let me know what I am missing here.

export const ROUTES: RouteInfo[] = [
    { path: '/dashboard', title: 'Dashboard',  icon: 'dashboard', class: '' },
    { path: '/user-profile', title: 'User Profile',  icon:'person', class: '' },
.
.
.

{ path: '/customerApp/customer', title: 'Customer',  icon:'person', class: '' },
 { path: '/upgrade', title: 'Upgrade to PRO',  icon:'unarchive', class: 'active-pro' },  
];
chelaruc commented 5 years ago

@jeywinlizy you need to create the route in src/app/layouts/admin-layout/admin-layout.routing.ts.