diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 1d32c95..2dfe427 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -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({ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index fdca986..74e901c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -5,12 +5,14 @@ import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { LoginComponent } from './login/login.component'; import { TabsComponent } from './tabs/tabs.component'; +import { RegisterBusinessComponent } from './register-business/register-business.component'; @NgModule({ declarations: [ AppComponent, LoginComponent, - TabsComponent + TabsComponent, + // RegisterBusinessComponent ], imports: [ BrowserModule, diff --git a/src/app/register-business/register-business.component.html b/src/app/register-business/register-business.component.html new file mode 100644 index 0000000..d320857 --- /dev/null +++ b/src/app/register-business/register-business.component.html @@ -0,0 +1 @@ +
register-business works!
diff --git a/src/app/register-business/register-business.component.scss b/src/app/register-business/register-business.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/register-business/register-business.component.spec.ts b/src/app/register-business/register-business.component.spec.ts new file mode 100644 index 0000000..f9188fd --- /dev/null +++ b/src/app/register-business/register-business.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { RegisterBusinessComponent } from './register-business.component'; + +describe('RegisterBusinessComponent', () => { + let component: RegisterBusinessComponent; + let fixture: ComponentFixture