Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7f6d712

Browse files
Remove unwanted code
1 parent bca7dff commit 7f6d712

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

‎src/app/app-routing.module.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const routes: Routes = [
1616
import('./users/users.module').then((m) => m.UsersModule),
1717
canActivate: [AuthGuard],
1818
},
19-
{ path: 'not-found', component: NotFoundComponent },// Add 'not-found' path
20-
{ path: '**', redirectTo: 'not-found' },// Redirect all other unknown paths to 'not-found'
19+
{ path: 'not-found', component: NotFoundComponent },
20+
{ path: '**', redirectTo: 'not-found' },
2121
];
2222

2323
@NgModule({

‎src/app/app.component.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { Component,OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
66
styleUrls: ['./app.component.scss'],
77
})
8-
export class AppComponent implements OnInit {
9-
ngOnInit() {}
10-
}
8+
export class AppComponent {}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /