angular - ngbPopover with html inside -
is possible put html inside ngbpopover? exactly, need put list of items. have parameters:
`ngbpopover="{{column.popup.get(row)}}" triggers="mouseenter:mouseleave" popovertitle="{{column.popup.title | translate}}" container="body"`
yes, need use <ng-template>
element so:
<ng-template #popcontent>hello, <b>{{name}}</b>!</ng-template> <button type="button" class="btn btn-secondary" [ngbpopover]="popcontent" popovertitle="fancy content"> i've got markup , bindings in popover! </button>
here working plunker: http://plnkr.co/edit/re1jbpmif11qm3pf3btw?p=preview
this documented on out demo page: https://ng-bootstrap.github.io/#/components/popover/examples
Comments
Post a Comment