将组件的状态交给服务来控制

This commit is contained in:
小海
2020-04-23 23:18:29 +08:00
parent 2bcca393e1
commit 6f9eb718ce
8 changed files with 100 additions and 33 deletions

View File

@@ -13,7 +13,6 @@ import {AdminVisitorComponent} from './admin-visitor/admin-visitor.component';
const routes: Routes = [
{path: '', pathMatch: 'full', component: AdminIndexComponent},
{path: 'article', component: AdminArticleComponent},
{path: 'comment', component: AdminCommentComponent},
{path: 'category', component: AdminCategoryComponent},
@@ -23,6 +22,7 @@ const routes: Routes = [
{path: 'user', component: AdminUserComponent},
{path: 'userInfo', component: AdminUserinfoComponent},
{path: 'visitor', component: AdminVisitorComponent},
{path: '**', component: AdminIndexComponent}
];
@NgModule({