Reputation: 11
I am trying to make bootstrap popover with external HTML file.
the popover is working great with the template, but I encounter a problem:
I can't make the directive work with the template file.
In the template schools.html
you can see a call to a directive named: changeColor
. When I am clicking the button the directive doesn't work.
Here is the plunker: http://embed.plnkr.co/YAfwK5/preview
Upvotes: 1
Views: 286
Reputation: 4739
I have updated your plnkr, see results here.
Relevant changes:
changeColor
to change-color
to link the directive$('.changeColor')
to elem()
$('.btm-primary')
to elem()
Upvotes: 2