bolierplate code for ngselect demo
This commit is contained in:
parent
9e02901937
commit
f3f24f8ed8
@ -31,6 +31,10 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'grid-filter',
|
path: 'grid-filter',
|
||||||
loadChildren: ()=> import('./grid-filter&sorting-demo/grid-filter-demo.module').then(m => m.GridFilterDemoModule)
|
loadChildren: ()=> import('./grid-filter&sorting-demo/grid-filter-demo.module').then(m => m.GridFilterDemoModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'select',
|
||||||
|
loadChildren: ()=> import('./ng-select-demo/ng-select-demo.module').then(m => m.NgSelectDemoModule)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" routerLink="grid-filter">Fitering Demo</a>
|
<a class="nav-link" routerLink="grid-filter">Fitering Demo</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" routerLink="select">NG-select</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-10" style="padding-top: 5px">
|
<div class="col-lg-10" style="padding-top: 5px">
|
||||||
|
@ -101,4 +101,7 @@
|
|||||||
<button type="button" class="btn btn-default">Yes</button>
|
<button type="button" class="btn btn-default">Yes</button>
|
||||||
<button type="button" class="btn btn-primary">No</button>
|
<button type="button" class="btn btn-primary">No</button>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
19
src/app/ng-select-demo/ng-select-demo-routing.module.ts
Normal file
19
src/app/ng-select-demo/ng-select-demo-routing.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule } from "@angular/core";
|
||||||
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { NgSelectDemoComponent } from './ng-select-demo/ng-select-demo.component';
|
||||||
|
|
||||||
|
|
||||||
|
const routes: Routes =[
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: NgSelectDemoComponent
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule]
|
||||||
|
})
|
||||||
|
export class NgSelectDemoRoutingModule {
|
||||||
|
|
||||||
|
}
|
15
src/app/ng-select-demo/ng-select-demo.module.ts
Normal file
15
src/app/ng-select-demo/ng-select-demo.module.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgSelectDemoComponent } from './ng-select-demo/ng-select-demo.component';
|
||||||
|
import { NgSelectDemoRoutingModule } from './ng-select-demo-routing.module';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [NgSelectDemoComponent],
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
NgSelectDemoRoutingModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class NgSelectDemoModule { }
|
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'ps-ng-select-demo',
|
||||||
|
templateUrl: './ng-select-demo.component.html',
|
||||||
|
styleUrls: ['./ng-select-demo.component.scss']
|
||||||
|
})
|
||||||
|
export class NgSelectDemoComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user