Angular-UI-Bootstrap custom tooltip/popover with 2-way data-binding

前端 未结 1 701
谎友^
谎友^ 2021-02-02 00:44

I am using angular-ui-bootstrap in my current project, and I have a requirement for a popover that will allow the user to take some action on a given element (rename/edit/delete

相关标签:
1条回答
  • 2021-02-02 01:38

    Here is the working plunker

    The problem is from the original tooltip. It removes the tooltip after you close but next time when you open it, it doesn't compile the tooltip again. (link function for the tooltip trigger only run in the first time.)

    My approach is don't remove the tooltip, just control it by display attribute from CSS.

    I also make a pull request to discuss this issue.

    I just update the plunker.

    The 2nd one is actually just make it link with the parent scope. However, it will create a child scope with my approach. I think you can use watch to do it as well.

    0 讨论(0)
提交回复
热议问题