angular-resizable icon indicating copy to clipboard operation
angular-resizable copied to clipboard

Error: [$compile:multidir] Multiple directives asking for new/isolated scope

Open zakdances opened this issue 8 years ago • 4 comments

Fails when using with Angular 1.5 component directives:

Error: [$compile:multidir] Multiple directives [myComponent, resizable (module: angularResizable)] asking for new/isolated scope on: <my-component resizable="resizable" r-directions="['bottom', 'right']" r-flex="true">

zakdances avatar Mar 31 '16 06:03 zakdances

I met same error. How do I fix it?

doiyuki avatar Jul 05 '16 08:07 doiyuki

I experience the same behaviour because the directive declares an isolated scope. I think we should make this directive not to use an isolated scope as this makes it not usable with containers that will have content and bindings which will be broken by the isolated scope.

Leward avatar Sep 13 '16 19:09 Leward

Nope, I tried with a non-isolated scope directive and it didn't work. I even tried inside the controller and it gives me the same error...could it be a compatibility issue? I'm using 1.6.1

rojasjandro89 avatar Jun 16 '17 18:06 rojasjandro89

I think I found the problem (at least with my project). I was using a wrapper of jQuery UI and it already contained a resizable directive with exactly the same name, I renamed the directive and problem solved. Work like a charm now. I was working under the assumption that colliding angular directives will be overridden...

rojasjandro89 avatar Jun 19 '17 14:06 rojasjandro89