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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -