Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularStrap tooltip disables my custom directive

I am trying to get the bs-tooltip AngularStrap directive to work with my own custom directive called "checkStrength" which checks the strength of a password. When using either of these directives alone, they work fine, but they won't work together.

This is a plunker with the bs-tooltip. The tooltip works fine but my custom "checkStrength" directive does not work.

This is a plunker without the bs-tooltip. In this case the "checkStrength" directive works fine.

What am I doing wrong?

like image 257
Nader Chehab Avatar asked Dec 03 '25 08:12

Nader Chehab


1 Answers

On your input element you have to use the following:

ng-model="$parent.pw"

bs-tooltip creates an isolated scope on the element its bound to.

Working Example: Plunker

like image 101
Rob Avatar answered Dec 05 '25 23:12

Rob