diff --git a/src/app/app.component.html b/src/app/app.component.html index 9e258ed..6a164d6 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,10 +1,2 @@ - - - - - - - - - + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 779afb0..e6f77ab 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,14 +1,9 @@ import { Component } from '@angular/core'; - -import { Login } from './login/login.component'; -import { TopNav } from './top-nav/top-nav.component'; -import { Board } from './board/board.component'; -import { Settings } from './settings/settings.component'; -import { Dashboard } from './dashboard/dashboard.component'; +import { ROUTER_DIRECTIVES } from '@angular/router'; @Component({ selector: 'app-component', - directives: [ Login, TopNav, Board, Settings, Dashboard ], + directives: [ ROUTER_DIRECTIVES ], templateUrl: 'app/app.component.html' }) export class AppComponent { diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts new file mode 100644 index 0000000..5e67134 --- /dev/null +++ b/src/app/app.routes.ts @@ -0,0 +1,16 @@ +import { RouterConfig, provideRouter } from '@angular/router'; + +import { Login } from './login/login.component'; +import { Board } from './board/board.component'; + +const ROUTES: RouterConfig = [ + { + path: '', + component: Login + } +]; + +export const APP_ROUTER_PROVIDERS = [ + provideRouter(ROUTES) +]; + diff --git a/src/app/board/board.component.html b/src/app/board/board.component.html index 5840e43..ed03b87 100644 --- a/src/app/board/board.component.html +++ b/src/app/board/board.component.html @@ -1,3 +1,5 @@ + +