From 42569b3c81a6eff3a71311a7ddb66b90124c3be9 Mon Sep 17 00:00:00 2001 From: Yubing325 <35515298+Yubing325@users.noreply.github.com> Date: Wed, 17 Jun 2020 12:11:14 -0500 Subject: [PATCH] bolier plate code for filter demo --- src/app/app-routing.module.ts | 4 ++++ src/app/app.component.html | 3 +++ .../grid-filter-demo-routing.module.ts | 15 +++++++++++++++ .../grid-filter-demo/grid-filter-demo.module.ts | 15 +++++++++++++++ .../grid-filter-demo.component.html | 1 + .../grid-filter-demo.component.scss | 0 .../grid-filter-demo.component.ts | 15 +++++++++++++++ 7 files changed, 53 insertions(+) create mode 100644 src/app/grid-filter-demo/grid-filter-demo-routing.module.ts create mode 100644 src/app/grid-filter-demo/grid-filter-demo.module.ts create mode 100644 src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.html create mode 100644 src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.scss create mode 100644 src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index abeccd4..35a9564 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -27,6 +27,10 @@ const routes: Routes = [ { path: 'pagination-demo', loadChildren: ()=> import('./pagination-demo/pagination-demo.module').then(m => m.PaginationDemoModule) + }, + { + path: 'grid-filter', + loadChildren: ()=> import('./grid-filter-demo/grid-filter-demo.module').then(m => m.GridFilterDemoModule) } ]; diff --git a/src/app/app.component.html b/src/app/app.component.html index 1353de0..4f1ac53 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -21,6 +21,9 @@ +
diff --git a/src/app/grid-filter-demo/grid-filter-demo-routing.module.ts b/src/app/grid-filter-demo/grid-filter-demo-routing.module.ts new file mode 100644 index 0000000..e5f8f53 --- /dev/null +++ b/src/app/grid-filter-demo/grid-filter-demo-routing.module.ts @@ -0,0 +1,15 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { GridFilterDemoComponent } from './grid-filter-demo/grid-filter-demo.component'; + + +const routes: Routes = [{ + path: '', + component: GridFilterDemoComponent +}]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class GridFilterDemoRoutingModule { } diff --git a/src/app/grid-filter-demo/grid-filter-demo.module.ts b/src/app/grid-filter-demo/grid-filter-demo.module.ts new file mode 100644 index 0000000..20e05c0 --- /dev/null +++ b/src/app/grid-filter-demo/grid-filter-demo.module.ts @@ -0,0 +1,15 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { GridFilterDemoRoutingModule } from './grid-filter-demo-routing.module'; +import { GridFilterDemoComponent } from './grid-filter-demo/grid-filter-demo.component'; + + +@NgModule({ + declarations: [GridFilterDemoComponent], + imports: [ + CommonModule, + GridFilterDemoRoutingModule + ] +}) +export class GridFilterDemoModule { } diff --git a/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.html b/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.html new file mode 100644 index 0000000..d40f2f4 --- /dev/null +++ b/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.html @@ -0,0 +1 @@ +

grid-filter-demo works!

diff --git a/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.scss b/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.ts b/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.ts new file mode 100644 index 0000000..0fbec20 --- /dev/null +++ b/src/app/grid-filter-demo/grid-filter-demo/grid-filter-demo.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'ps-grid-filter-demo', + templateUrl: './grid-filter-demo.component.html', + styleUrls: ['./grid-filter-demo.component.scss'] +}) +export class GridFilterDemoComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}