Есть ли способ добавить шаблон popover для директивы. Я строй директивы, когда пользователь нажимает на элементе начальной загрузки пирога должны появитьсяКак добавить шаблон popover для директивы
Вот мой код
...
restrict: 'A'
template: '<a class="btn btn-primary"><i class="fa fa-cog"></i></a>'
popoverTemplate: ".. html code .."
link: (scope, element, attrs) ->
$(element).popover
html: yes
title: attrs.title || 'Title'
content: '... popoverTemplate ...' #this html should get form popoverTemplate
container: 'body'
placement: attrs.placement
...
является это правильный путь? потому что popover имеет html-форму.