I want to conditionally enable/disable a tooltip on a button. I have done this to test the disable state:
<button type="button"
uib-tooltip="test" tooltip-is-open="false">
</button>
But the tooltip shows. How to disable the tooltip?
Thank you
This scenario doesn't quite match up with what you were looking for, but I found that I needed to use a combination of tooltip-trigger="none" and tooltip-is-open. For example:
Hopefully it will help someone.
What is the problem in it? It's clearly given in the docs with an example.
You should be using
tooltip-is-open
flag.You can use
tooltip-enable="flag"
whereflag
is a Boolean value set in your controller based on your business logicAnd here is a plunker for tool-tip enable/disable