Ilan Ancel
Ilan Ancel

Reputation: 11

Bootstrap popover html template can't read angular directive

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

Answers (1)

Mark Veenstra
Mark Veenstra

Reputation: 4739

I have updated your plnkr, see results here.

Relevant changes:

  • In the HTML changed changeColor to change-color to link the directive
  • In the directive changed $('.changeColor') to elem()
  • In the directive changed $('.btm-primary') to elem()

Upvotes: 2

Related Questions