|
|
@@ -1,12 +1,20 @@ |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
import { RouterModule, Routes } from '@angular/router'; |
|
|
|
import { LoginComponent } from './login/login.component'; |
|
|
|
import { RegisterBusinessComponent } from './register-business/register-business.component'; |
|
|
|
import { TabsComponent } from './tabs/tabs.component'; |
|
|
|
|
|
|
|
const routes: Routes = [ |
|
|
|
{ path: '', pathMatch: 'full', redirectTo: 'login' }, |
|
|
|
{ component: LoginComponent, path: 'login' }, |
|
|
|
{ component: TabsComponent, path: 'tabs' }, |
|
|
|
{ component: TabsComponent, path: 'tabs', children : [ |
|
|
|
{ |
|
|
|
path: '', pathMatch: 'full', redirectTo: 'register-business' |
|
|
|
}, { |
|
|
|
path: 'register-business', |
|
|
|
component: RegisterBusinessComponent, |
|
|
|
}] |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
@NgModule({ |
|
|
|