From 42131d74a98038d8df229a86609b57d4af1f82e9 Mon Sep 17 00:00:00 2001 From: Art Date: Fri, 17 Sep 2021 16:58:29 +0300 Subject: [PATCH] 134.1. Configuring routes - generate app-routing.module (#17) --- README.md | 10 ++++++++++ support-portal-frontend/src/app/app-routing.module.ts | 11 +++++++++++ support-portal-frontend/src/app/app.module.ts | 4 +++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 support-portal-frontend/src/app/app-routing.module.ts diff --git a/README.md b/README.md index fafbdbd..c8aa776 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # art-get-arrays-jwt-springsecurity-angular JSON Web Token (JWT) with Spring Security And Angular - Tutorial from Get Arrays (Udemy) + +### Notes + +#### Section 19: HTML Template + +##### 134. Configuring routes + +- Generate AppRoutingModule + - `ng generate module app-routing --flat --module=app` + diff --git a/support-portal-frontend/src/app/app-routing.module.ts b/support-portal-frontend/src/app/app-routing.module.ts new file mode 100644 index 0000000..0327f64 --- /dev/null +++ b/support-portal-frontend/src/app/app-routing.module.ts @@ -0,0 +1,11 @@ +import {NgModule} from '@angular/core'; +import {CommonModule} from '@angular/common'; + + +@NgModule({ + declarations: [], + imports: [ + CommonModule + ] +}) +export class AppRoutingModule { } diff --git a/support-portal-frontend/src/app/app.module.ts b/support-portal-frontend/src/app/app.module.ts index 354715a..445746b 100644 --- a/support-portal-frontend/src/app/app.module.ts +++ b/support-portal-frontend/src/app/app.module.ts @@ -11,6 +11,7 @@ import {NotificationModule} from "./notification/notification.module"; import {LoginComponent} from './component/login/login.component'; import {RegisterComponent} from './component/register/register.component'; import {UserComponent} from './component/user/user.component'; +import {AppRoutingModule} from './app-routing.module'; @NgModule({ declarations: [ @@ -22,7 +23,8 @@ import {UserComponent} from './component/user/user.component'; imports: [ BrowserModule, HttpClientModule, - NotificationModule + NotificationModule, + AppRoutingModule ], providers: [AuthenticationGuard, AuthenticationService, UserService, {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}