@Leeuwtje, in the plunkr reference that you have attached, there is a popover that is opening on mouseenter event (when you hover the mouse over the button).
Also, if you need to prefix the attributes with data-, do them like this:
此外,如果您需要使用data-为属性添加前缀,请执行以下操作:
The popover prefixed to -template or -trigger in popover-trigger and popover-template makes it an angular ui directive, so removing popover- would make it invalid / meaningless to angular ui.
The reason the popover-template did not work is because it expects a variable as the attribute value.
popover-template不起作用的原因是因为它期望变量作为属性值。
Replacing :
popover-template="myPopovertemplate.html"
by
popover-template="'myPopovertemplate.html'"
Adding the filename in quotes does the trick.
在引号中添加文件名就可以了。
We put the template url in single quotes so it becomes a valid variable. That is why the other buttons on the page in the plunk function, because they have the popover-template value to be variables that are defined in $scope.