Bindonce is a small library for AngularJS that provides one-time evaluation (thus zero watchers) for AngularJS. Since Bindonce 0.2+, it's now possible to evaluate any kind of attributes thanks to bo-attr-*.
<div bindonce ng-controller="MyCtrl"> <div bo-attr bo-attr-data-content="content" bo-attr-data-html="isHtml" bo-attr-data-title="title" bo-attr-data-placement="placement" data-toggle="popover"> <i class="icon icon-question-sign"></i> </div> </div>
Title, isHtml and content will be evaluated only one time and put inside attr-data-* attributes. From this point we could write our own directive to abstract the creation of our bootstrap popover but that's another story.