Blacked and isorted the python files
Prettied and eslinted the typescript/html files
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { ProductSaleReportResolver } from './product-sale-report-resolver.service';
|
||||
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
|
||||
import { ProductSaleReportResolver } from './product-sale-report-resolver.service';
|
||||
import { ProductSaleReportComponent } from './product-sale-report.component';
|
||||
|
||||
const productSaleReportRoutes: Routes = [
|
||||
@ -11,27 +13,18 @@ const productSaleReportRoutes: Routes = [
|
||||
component: ProductSaleReportComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'Product Sale Report'
|
||||
permission: 'Product Sale Report',
|
||||
},
|
||||
resolve: {
|
||||
info: ProductSaleReportResolver
|
||||
info: ProductSaleReportResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always'
|
||||
}
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule.forChild(productSaleReportRoutes)
|
||||
|
||||
],
|
||||
exports: [
|
||||
RouterModule
|
||||
],
|
||||
providers: [
|
||||
ProductSaleReportResolver
|
||||
]
|
||||
imports: [CommonModule, RouterModule.forChild(productSaleReportRoutes)],
|
||||
exports: [RouterModule],
|
||||
providers: [ProductSaleReportResolver],
|
||||
})
|
||||
export class ProductSaleReportRoutingModule {
|
||||
}
|
||||
export class ProductSaleReportRoutingModule {}
|
||||
|
||||
Reference in New Issue
Block a user