Skip to main content

angular bootstrap - Popover with HTML content

app.component.html

<h4 style="padding-top:25px; padding-bottom:50px;">
  Angular Bootstrap - Popover with HTML content
</h4>

<ng-template #popTitle>Popover HTML <b>Title</b></ng-template>
<ng-template #popContent>
  Lorem <span style="color:red;">
  dolor sit amet,</span>
  consectetur elit.
  Vivamus <b>eget sodales justo</b>.
  Donec eu <i>condimentum nibh, eu congue mi</i>.
  Phasellus <u>ipsum sit amet faucibus</u> placerat.
</ng-template>

<button 
  #pop="ngbPopover"
  placement="end-top"
  [ngbPopover]="popContent" 
  [popoverTitle]="popTitle">
    Open Popover
</button>
More Angular tutorials