Skip to content

Commit

Permalink
feat(核心功能): 注入路由认证守卫服务,添加引用路径
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayisheji committed Nov 30, 2017
1 parent 3ffd4be commit 55d8317
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/core/core.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NgModule, Optional, SkipSelf } from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AuthGuard } from './route-guards';
@NgModule({
imports: [
HttpClientModule,
Expand All @@ -13,7 +14,8 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
// api请求根地址
api: 'http://localhost:3000/api/v1'
}
}
},
AuthGuard
]
})
export class CoreModule {
Expand Down
3 changes: 2 additions & 1 deletion src/app/core/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './core.module';
export * from './core.module';
export * from './route-guards';

0 comments on commit 55d8317

Please sign in to comment.