This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
tooltip: does not take one time binding into account and sets watcher #9958
Open
Description
Actual Behavior:
What is the issue? *
tooltip sets up watcher even if we have one time binding.What is the expected behavior?
tooltip should set up watchers only if we don't have one time binding.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
Details:
Given this html:
<md-tooltip md-delay="400">
{{::(mylabel |translate)}}"
</md-tooltip>
The tooltip.js has the following code:
if (element.text().indexOf($interpolate.startSymbol()) > -1) {
scope.$watch(function() {
return element.text().trim();
}, addAriaLabel);
}
We should somehow add the exception that it is not one time binding.
Angular Versions: *
Angular Version:
1.5.8Angular Material Version:
1.1.0
Additional Information:
Browser Type: *
Browser Version: *
OS: *
Stack Traces: