Closed almeidap closed 9 years ago
Edit: Nevermind. Give me some time to review this
I'm using angular 1.2 and experiencing the same issue (confirmIf is present but undefined), so i would really appreciate this solution.
There were a lot of conflicts so I merged this under 418c955. Thank you for your contribution!
You are welcome! ;)
… and refactor to avoid using
$watch()
.It seems that, since AngularJS 1.4, the
confirmIf
key is always present in theattrs
object, even when it is not declared in the HTML markup: https://github.com/Schlogen/angular-confirm/blob/1.0.4/angular-confirm.js#L82