javascript - Angular-ui bootstrap don't work correctly with templates -
i use angular-ui-bootstrap popover. manually changed template of popover support html in it. changed ng-bind ng-bind-html:
<div class=\"popover-content\" ng-bind-html=\"content\"></div>
i'm passing such template popover attribute:
<span ng-click="scopefunction()">{{somethingfromscope}}</span>
so {{somethingfromscope}} resolves , works, ng-click function doesn't work. ng-show, ng-if (looks ng- directive) don't work well.
what's reason of it? how can make work? thanks
just changing template not enough
update module dependencies this:
angular.module('ui.bootstrap.popover', ['ui.bootstrap.tooltip', 'ui.bootstrap.bindhtml']) and change template
<div class="popover-content" bind-html-unsafe="content"></div> works angular.ui.bootstrap v0.11.0 2014-05-01
Comments
Post a Comment