LC Modal - Angular modal component.
shell
npm install @libusoftcicom/lc-modal
`
Register ModalModule in NgModule with components that are opened in modal:
`shell
import { ModalModule } from '@libusoftcicom/lc-modal';
import { ModalComponentExample } from '...'; // component used in modal
@NgModule(
{
declarations: [..., ModalComponentExample],
imports: [
ModalModule,
...
],
providers: [...],
bootstrap: [...]
})
export class AppModule {}
`
Add modal anchor component:
`shell
`
Open modal:
`shell
let modalResult = await this.modal
.title('Example modal')
.component(ModalComponentExample)
.setHeight(370)
.setWidth(700)
.draggable(true)
.showMaximize(true)
.open();
`
Developing
$3
- Angular
- Font Awesome
$3
This project was generated with Angular CLI version 8.1.3.
Angular CLI must be installed before building LC Modal component.
`shell
npm install -g @angular/cli
`
`shell
git clone https://github.com/LibusoftCicom/lc-modal.git
cd lc-modal/
npm install
npm run start
`
Open "http://localhost:4200" in browser
$3
This project was generated with Angular CLI version 8.1.3.
Angular CLI must be installed before building LC Modal component.
`shell
npm install -g @angular/cli
`
`shell
git clone https://github.com/LibusoftCicom/lc-modal.git
cd lc-modal/
npm install
npm run build
`
Versioning
We use SemVer for versioning. For the versions available, see the link to tags on this repository.
Tests
This project was generated with Angular CLI version 8.1.3.
Angular CLI must be installed before building LC modal component.
`shell
npm install -g @angular/cli
`
`shell
git clone https://github.com/LibusoftCicom/lc-modal.git
cd lc-modal/
npm install
npm run test
``