From 29716c4681f0e016e5f25291e95a143ade39faee Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 13 Mar 2019 22:04:09 +0800 Subject: Use route to control user dialog. --- Timeline/ClientApp/src/app/app.module.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Timeline/ClientApp/src/app/app.module.ts') diff --git a/Timeline/ClientApp/src/app/app.module.ts b/Timeline/ClientApp/src/app/app.module.ts index 85c4c43d..b75e10e2 100644 --- a/Timeline/ClientApp/src/app/app.module.ts +++ b/Timeline/ClientApp/src/app/app.module.ts @@ -9,6 +9,7 @@ import { AppComponent } from './app.component'; import { TodoModule } from './todo/todo.module'; import { HomeModule } from './home/home.module'; import { UserModule } from './user/user.module'; +import { UserService } from './user/user.service'; @NgModule({ @@ -22,6 +23,7 @@ import { UserModule } from './user/user.module'; { path: '', redirectTo: '/home', pathMatch: 'full' }, ]) ], + providers: [UserService], bootstrap: [AppComponent] }) export class AppModule { } -- cgit v1.2.3