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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -