How to add popover template for directive
<p>Is there is way to add popover template for a directive. I am building a directive when user clicks on the element bootstrap popover should appear</p>

<p>here is my code</p>

<pre><code> ...
 restrict: 'A'
 template: '&lt;a class="btn btn-primary"&gt;&lt;i class="fa fa-cog"&gt;&lt;/i&gt;&lt;/a&gt;'
 popoverTemplate: ".. html code .."
 link: (scope, element, attrs) -&gt;
   $(element).popover
      html: yes
      title: attrs.title || 'Title'
      content: '... popoverTemplate ...' #this html should get form popoverTemplate
      container: 'body'
      placement: attrs.placement
 ...
</code></pre>

<p>is it right way? because popover has a html form.</p>