134.1. Configuring routes - generate app-routing.module (#17)
This commit is contained in:
10
README.md
10
README.md
@ -1,2 +1,12 @@
|
|||||||
# art-get-arrays-jwt-springsecurity-angular
|
# art-get-arrays-jwt-springsecurity-angular
|
||||||
JSON Web Token (JWT) with Spring Security And Angular - Tutorial from Get Arrays (Udemy)
|
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`
|
||||||
|
|
||||||
|
|||||||
11
support-portal-frontend/src/app/app-routing.module.ts
Normal file
11
support-portal-frontend/src/app/app-routing.module.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import {NgModule} from '@angular/core';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [],
|
||||||
|
imports: [
|
||||||
|
CommonModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class AppRoutingModule { }
|
||||||
@ -11,6 +11,7 @@ import {NotificationModule} from "./notification/notification.module";
|
|||||||
import {LoginComponent} from './component/login/login.component';
|
import {LoginComponent} from './component/login/login.component';
|
||||||
import {RegisterComponent} from './component/register/register.component';
|
import {RegisterComponent} from './component/register/register.component';
|
||||||
import {UserComponent} from './component/user/user.component';
|
import {UserComponent} from './component/user/user.component';
|
||||||
|
import {AppRoutingModule} from './app-routing.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -22,7 +23,8 @@ import {UserComponent} from './component/user/user.component';
|
|||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
NotificationModule
|
NotificationModule,
|
||||||
|
AppRoutingModule
|
||||||
],
|
],
|
||||||
providers: [AuthenticationGuard, AuthenticationService, UserService,
|
providers: [AuthenticationGuard, AuthenticationService, UserService,
|
||||||
{provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}
|
{provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}
|
||||||
|
|||||||
Reference in New Issue
Block a user