Skip to content

Commit

Permalink
modification in routing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Jadhav committed Jun 17, 2018
1 parent 8b88231 commit 6ee123f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SignupComponent } from './componets/signup/signup.component';
import { HomeComponent } from './componets/home/home.component';

const route: Routes = [
{path: '', component: SignupComponent},
{path: '**', component: SignupComponent},
{path: 'home', component: HomeComponent}
];

Expand Down
4 changes: 2 additions & 2 deletions src/app/componets/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<a class="navbar-brand">Angular App</a>
<div>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<li class="nav-item" [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact: true}">
<a routerLink="/" class="nav-link">singup</a>
</li>
<li class="nav-item">
<li class="nav-item" [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact: true}">
<a routerLink="/home" class="nav-link">Home</a>
</li>
</ul>
Expand Down

0 comments on commit 6ee123f

Please sign in to comment.