2

I am trying to display some user information in a bootbox dialog. There is a custom component that I need to display within the dialog.

var dialog = bootbox.dialog({
   title: 'User Information Table',
   message: `<div class="myclass"><app-charts></app-charts></div>`,
   buttons: {
  cancel: {
    label: "Cancel!",
    className: 'btn-danger',
      callback: function(){

  }
})

The template is not compiled and hence is being displayed as a normal tag in the bootbox. Is there a way to display an angular 4 component inside the bootbox dialog?

Kyle Krzeski
  • 6,183
  • 6
  • 41
  • 52
stackMan10
  • 732
  • 6
  • 25

1 Answers1

0

As far as I know, Bootbox will not do this. I use MatDialog for creating dialogs with custom components. Check it out:

https://material.angular.io/components/dialog/overview

NAMS
  • 983
  • 7
  • 17