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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -