question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: [$compile:multidir] Multiple directives [mdTab (module: material.components.tabs), permission] asking for new/isolated

See original GitHub issue

Hey guys, I’m trying to use the lib with some angular material components, but I’m having the following issue:

angular.js:13236 Critical ERROR!: ERRA0001: Error: [$compile:multidir] Multiple directives [mdTab (module: material.components.tabs), permission] asking for new/isolated scope on: <md-tab permission="" only="'technician'" label="Working on">

The code I have is:

<md-tabs >
    <md-tab permission only="'technician'" >
        ....
    </md-tab>
    <md-tab permission only="'customer'" >
        ....
    </md-tab>
</md-tabs>

It is not possible to use the permission directive with another directive?

Thanks!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
mustelacommented, Apr 1, 2016

You rock! Thanks!

0reactions
masterspambotcommented, Apr 1, 2016

Test are passing and everything seems ok, so in v2.3.1 ill release updated directive 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple directives asking for new/isolated scope - Angular ...
The issue is that ng-controller creates an isolated scope. This is mentioned in the official Angular documentation.
Read more >
Multiple directives [mdTabs (module: material.components ...
Hi, I am trying to use ng-sortable with md-tabs. Error: [$compile:multidir] ...
Read more >
Directives > mdTabs - AngularJS Material
The <md-tabs> directive serves as the container for 1..n <md-tab> child directives. In turn, the nested <md-tab> directive is used to specify a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found