Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Remove a need for a child scope in tooltips / popovers #1269

@Sinetheta

Description

@Sinetheta

I've created a SO question regarding this behaviour, but I think it qualifies as an issue.

When using tooltip from the Angular UI on an element which is also using directive that asks for an isolated scope, eg:

.directive('smile', function() {
  return {
    scope: {},
    template: ':)'
  };
});

I get the following error in Firefox but not in Chrome:

Error: Multiple directives [smile, tooltip] asking for isolated scope on: <a class="ng-isolate-scope ng-scope" href="#" tooltip="Tooltip" tooltip-placement="bottom" smile="">

Which is odd because I wouldn't expect a tooltip to ask for an isolated scope. It's my understanding this line in the source says that the directive does not ask for an isolated scope, and that only the popup which gets injected at the bottom of the page does.

Isn't this bad? Why is this error only showing up in Firefox?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions