angularjs - Dynamic 'uib-tooltip-html' within anchor tag -


i want show different tooltip messages based on conditions. have written below code same -

                     <a                          ng-show="ismanagedmeetingmandatory"                          class="glyphicon glyphicon-question-sign"                          target="_blank"                          ng-href="{{dynamicurl}}"                          uib-tooltip-html="'{{dynamicmsg}}'"                          tooltip-placement="right"                          tooltip-append-to-body="true">                      </a> 

the url values changes javascript code message not. both of these variables in $scope variable.

what missing?

try without single quotes , curly braces

 <a ng-show="ismanagedmeetingmandatory"     class="glyphicon glyphicon-question-sign"     target="_blank"     ng-href="{{dynamicurl}}"     uib-tooltip-html="dynamicmsg"     tooltip-placement="right"     tooltip-append-to-body="true">     </a> 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -