aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-01-14 10:01:12 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-01-14 10:01:12 +0200
commitc7fc731a94939c2f5ea5fa7a123dcf06009136d4 (patch)
tree2ff768cf9381fafc74fde32cbfa9a60e83dc395f /src
parent5a62952229d784bab73260c6ff76b8d25500bbb4 (diff)
downloadDevHive-c7fc731a94939c2f5ea5fa7a123dcf06009136d4.tar
DevHive-c7fc731a94939c2f5ea5fa7a123dcf06009136d4.tar.gz
DevHive-c7fc731a94939c2f5ea5fa7a123dcf06009136d4.zip
Added simple routing, where on / is the feed, on /login is login and on /register is register
Diffstat (limited to 'src')
-rw-r--r--src/DevHive.Angular/src/app/app-routing.module.ts9
-rw-r--r--src/DevHive.Angular/src/app/app.component.html6
2 files changed, 9 insertions, 6 deletions
diff --git a/src/DevHive.Angular/src/app/app-routing.module.ts b/src/DevHive.Angular/src/app/app-routing.module.ts
index d425c6f..b733655 100644
--- a/src/DevHive.Angular/src/app/app-routing.module.ts
+++ b/src/DevHive.Angular/src/app/app-routing.module.ts
@@ -1,7 +1,14 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
+import { FeedComponent } from './components/feed/feed.component';
+import { LoginComponent } from './components/login/login.component';
+import { RegisterComponent } from './components/register/register.component';
-const routes: Routes = [];
+const routes: Routes = [
+ { path: '', component: FeedComponent },
+ { path: 'login', component: LoginComponent },
+ { path: 'register', component: RegisterComponent }
+];
@NgModule({
imports: [RouterModule.forRoot(routes)],
diff --git a/src/DevHive.Angular/src/app/app.component.html b/src/DevHive.Angular/src/app/app.component.html
index 2bb3494..6c51026 100644
--- a/src/DevHive.Angular/src/app/app.component.html
+++ b/src/DevHive.Angular/src/app/app.component.html
@@ -1,7 +1,3 @@
<div class="main">
- <!-- <app-login></app-login> -->
- <!-- <app-register></app-register> -->
- <app-feed></app-feed>
+ <router-outlet></router-outlet>
</div>
-
-<!-- <router-outlet></router-outlet> -->