1

Hi i'm using bootstrap with angularjs to my project. I searched and tried some methods for show some text in tooltip. But its not working. Code is here... please help me out

<div popover-placement="up" popover-trigger="mouseenter" popover=" Help contents displays here"> Help? </div>

<div data-toggle="tooltip" title="Help contents displays here tooltip"> Help? </div>

These two methods also not working... How to fix it?

2
  • Your question looks kind of weird, but have a look at the Angular UI Bootstrap project: angular-ui.github.io/bootstrap. Use this for replacing bootstraps javascript by angular directives. Commented Aug 21, 2014 at 10:06
  • I want to do with normal angular js Commented Aug 21, 2014 at 10:21

1 Answer 1

2

you use can use uiJqConfig for details

http://angular-ui.github.io/ui-utils/

just need to add this module

myapp.value('uiJqConfig', {
// The Tooltip namespace
tooltip: {
    // Tooltip options. This object will be used as the defaults
    placement: 'right'
 }

});

and u can use it in your html like this

<span title="this is my text" ui-jq="tooltip">

 you can also change the position like

<span title="this is my text" ui-jq="tooltip"  tooltip-placement="left">
Sign up to request clarification or add additional context in comments.

3 Comments

Is not possible to do with normal angularjs?
For this you need to add ui bootstrap
If i add ui bootstrap, whether it will affect my normal bootstrap styles?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.