add demo for command modal

This commit is contained in:
Yubing325
2020-06-09 14:14:18 -05:00
parent 5bd9ae4d3b
commit 9e1c565fef
20 changed files with 141 additions and 24 deletions
@@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CommandModalComponent } from './command-modal/command-modal.component';
@NgModule({
imports: [
CommonModule
],
declarations: [CommandModalComponent]
})
export class CommandModalModule { }
@@ -0,0 +1 @@
<p>command-modal works!</p>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CommandModalComponent } from './command-modal.component';
describe('CommandModalComponent', () => {
let component: CommandModalComponent;
let fixture: ComponentFixture<CommandModalComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ CommandModalComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(CommandModalComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'ps-command-modal',
templateUrl: './command-modal.component.html',
styleUrls: ['./command-modal.component.scss']
})
export class CommandModalComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
@@ -0,0 +1,13 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormGroupCommandModalComponent } from './form-group-command-modal/form-group-command-modal.component';
@NgModule({
imports: [
CommonModule
],
declarations: [FormGroupCommandModalComponent]
})
export class FormGroupCommandModalModule { }
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'ps-form-group-command-modal',
templateUrl: './form-group-command-modal.component.html',
styleUrls: ['./form-group-command-modal.component.scss']
})
export class FormGroupCommandModalComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
@@ -1,11 +0,0 @@
import { NgModule } from '@angular/core';
@NgModule({
declarations: [],
imports: [
],
exports: []
})
export class NgxBootstrapModule { }
@@ -1,9 +0,0 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class NgxBootstrapService {
constructor() { }
}
@@ -2,6 +2,5 @@
* Public API Surface of ngx-bootstrap
*/
export * from './lib/ngx-bootstrap.service';
export * from './lib/ngx-bootstrap.component';
export * from './lib/ngx-bootstrap.module';
export * from './lib/command-modal/command-modal.module';
export * from './lib/command-modal/command-modal/command-modal.component';