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}