TwanoO67 / ngx-admin-lte

Admin LTE for Angular 2/4/6/8 as a NPM package
MIT License
108 stars 47 forks source link

How to Add Login Page in this project #80

Open dharmeshsharma opened 4 years ago

dharmeshsharma commented 4 years ago

We have implement same theme and really help but how we add login page without main layout. kindly fixed.

thanks Dharmesh

TwanoO67 commented 4 years ago

Hello,

As said in the readme: you can declarer a route with the Layout for login

// not logged routes
    {
      component: LayoutLoginComponent,
      path: 'login'
    },
TwanoO67 commented 4 years ago

more precisely, you can use the LayoutLogin and your own login component like so:

{
    children: [
      {
        component: MyLoginComponent,
        path: ''
      }
    ],
    component: LayoutLoginComponent,
    path: 'login',
  }