markdown como implementar el登录

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown como implementar el登录相关的知识,希望对你有一定的参考价值。

Notice this is the same as before. There is another router-outlet which refers to the routes of the nested children in MainComponent. Views from HomeComponent, DownloadComponent, and CompareComponent will go in here.

Cheers!

<div class="all-wrapper menu-side with-side-panel">
  <div class="layout-w">

    <mw-side-menu class="desktop-menu menu-side-w menu-activated-on-click"></mw-side-menu>
    <div class="content-w">
      <mw-header-menu></mw-header-menu>
      <div class="content-i">
        <router-outlet></router-outlet>
      </div>
    </div>

  </div>
</div>
Notice we only place router-outlet, which will hold the view for either MainComponent or LoginComponent, which can be separate

Then in MainComponent:
<router-outlet></router-outlet>
The key here is that the Routes can have children which is an array of Routes as you can see.

Your app.component.html can look like this:
export const ROUTES: Routes = [
   {
      path: '',
      component: MainComponent,
      children: [
         { path: '', component: HomeComponent },
         { path: 'download', component: DownloadComponent },
         { path: 'compare', component: CompareComponent }
      ] 
   },
   { path: 'login', component: LoginComponent },
]

One quick way I can think of is to change the structure of your routes to something like this:

以上是关于markdown como implementar el登录的主要内容,如果未能解决你的问题,请参考以下文章

markdown Metodo在哪里找到como

markdown Como.md

markdown [CURL] Como fazer CURL

markdown Como criar um插件Wordpress

markdown Como configurareleevçãododoe chaves SSH

markdown Como criar um组件通过Angular CLI