material icon indicating copy to clipboard operation
material copied to clipboard

tooltip: does not take one time binding into account and sets watcher

Open david-gang opened this issue 9 years ago • 0 comments

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.8
  • Angular Material Version: 1.1.0

Additional Information:

  • Browser Type: *
  • Browser Version: *
  • OS: *
  • Stack Traces:

david-gang avatar Nov 01 '16 12:11 david-gang