astute/AstuteClient2/src/app/app-routing.module.ts
Akash Shah 350b854b8d Loads of changes in this one:
- customer and sales order are updated with new workflow for details
 - invoice has yet to be updated to the new workflow
 - added a settings tab and put service types and logout on there
 - updated homepage and nav-bar accordingly
2019-06-08 23:42:44 -04:00

36 lines
1.5 KiB
TypeScript

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {RouterModule, Routes} from '@angular/router';
import {CustomerComponent} from './customer/customer.component';
import {SalesOrderComponent} from './sales-order/sales-order.component';
import {InvoiceComponent} from './invoice/invoice.component';
import {HomepageComponent} from './homepage/homepage.component';
import {InvoiceGenComponent} from './invoice-gen/invoice-gen.component';
import {InvoicePaymentComponent} from './invoice-payment/invoice-payment.component';
import {LoginComponent} from './login/login.component';
import {SettingsComponent} from './settings/settings.component';
const routes: Routes = [
{ path: '', redirectTo: 'login', pathMatch: 'full'},
{ path: 'home', redirectTo: 'homepage', pathMatch: 'full'},
{ path: 'homepage', component: HomepageComponent },
{ path: 'customer', component: CustomerComponent },
{ path: 'sales-order', component: SalesOrderComponent },
{ path: 'invoice', component: InvoiceComponent },
{ path: 'invoice-gen', component: InvoiceGenComponent },
{ path: 'invoice-payment', component: InvoicePaymentComponent },
// { path: 'service-type', component: ServiceTypeComponent},
{ path: 'login', component: LoginComponent },
{ path: 'settings', component: SettingsComponent }
];
@NgModule({
exports: [RouterModule],
imports: [
CommonModule,
RouterModule.forRoot(routes)
],
declarations: []
})
export class AppRoutingModule { }