bolierplate code for form-group-modal
This commit is contained in:
parent
aec93beeca
commit
02dc911925
@ -19,6 +19,10 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'command-modal',
|
path: 'command-modal',
|
||||||
loadChildren: () => import('./command-modal-demo/command-modal-demo.module').then(m => m.CommandModalDemoModule)
|
loadChildren: () => import('./command-modal-demo/command-modal-demo.module').then(m => m.CommandModalDemoModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'form-group',
|
||||||
|
loadChildren: () => import('./form-group-modal-demo/form-group-modal-demo.module').then(m => m.FormGroupModalDemoModule)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" routerLink="command-modal">Command Modal</a>
|
<a class="nav-link" routerLink="command-modal">Command Modal</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" routerLink="form-group">Form Group Modal</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-10" style="padding-top: 5px">
|
<div class="col-lg-10" style="padding-top: 5px">
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
import { FormGroupModalDemoComponent } from './form-group-modal-demo/form-group-modal-demo.component';
|
||||||
|
|
||||||
|
|
||||||
|
const routes: Routes = [{
|
||||||
|
path: '',
|
||||||
|
component: FormGroupModalDemoComponent
|
||||||
|
}];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule]
|
||||||
|
})
|
||||||
|
export class FormGroupModalDemoRoutingModule { }
|
@ -0,0 +1,14 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormGroupModalDemoComponent } from './form-group-modal-demo/form-group-modal-demo.component';
|
||||||
|
import { FormGroupModalDemoRoutingModule } from './form-group-modal-demo-routing.module'
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [FormGroupModalDemoComponent],
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormGroupModalDemoRoutingModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class FormGroupModalDemoModule { }
|
@ -0,0 +1 @@
|
|||||||
|
<p>form-group-modal-demo works!</p>
|
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'ps-form-group-modal-demo',
|
||||||
|
templateUrl: './form-group-modal-demo.component.html',
|
||||||
|
styleUrls: ['./form-group-modal-demo.component.scss']
|
||||||
|
})
|
||||||
|
export class FormGroupModalDemoComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user