valor-software/angular2-bootstrap

View on GitHub
demo/src/app/components/+modal/demos/modal-with-popups/modal-with-popups.ts

Summary

Maintainability
A
3 hrs
Test Coverage
import { Component, TemplateRef } from '@angular/core';
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';

@Component({
  selector: 'demo-modal-with-popups',
  templateUrl: './modal-with-popups.html'
})
export class DemoModalWithPopupsComponent {
  modalRef: BsModalRef;

  constructor(private modalService: BsModalService) {}

  openModal(template: TemplateRef<any>) {
    this.modalRef = this.modalService.show(template);
  }
}