ek free asked 6 years ago


I am considering using this product and going pro but opening up a modal programmatically is not what I would expect.  Below is a snippet from ng-bootstrap.  Is there a way to do this or do I need to write my own service to do this?  Also, bootstrap has alerts https://getbootstrap.com/docs/4.0/components/alerts/.  I do not see any component for this. const activeModal = this.modalService.open(SelectBillingModalComponent, { centered: true, size: 'lg' }); activeModal.componentInstance.billing = billing.billingAccount; activeModal.componentInstance.modal = activeModal; activeModal.result.then((result) => { //do something }, (reason) => { //do something });

Damian Gemza staff commented 6 years ago

Dear ek, Actually, there is an Alert Component in our library. Please take a look at Alerts docs: https://mdbootstrap.com/angular/advanced/alerts/ About calling modals from global service: For now we haven't got such functionality, but in future, we want to implement it. Best Regards, Damian


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags