bmw0128
bmw0128

Reputation: 13698

Angular compile error when going to version 1.3.0-beta.12

When I updated to 1.3.0-beta.12, and I fire up my application, I get:

Error: [$compile:multidir] http://errors.angularjs.org/1.3.0-beta.12/$compile/multidir?p0=ngController…v%20class%3D%22off-canvas-wrap%22%20ng-controller%3D%22OffCanvasCtrl%22%3E
at Error (native)
at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.12/angular.min.js:6:457
at La (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.12/angular.min.js:63:19)

So far I cannot track down what changed in beta.12 to cause this to happen. I'm hoping this is an issue someone has run into, that it is a known common issue.

Upvotes: 0

Views: 209

Answers (1)

harishr
harishr

Reputation: 18065

the error is there because you have two directive on same div asking for isolate scope

      <div class="off-canvas-wrap" ng-controller="OffCanvasCtrl"> 

what you can do to resolve this issue is move the another directive on a child scope

      <div class="off-canvas-wrap"> 
      <div ng-controller="OffCanvasCtrl"> 

      </div>
      </div>

you should use the sequence whichever is appropriate as per the implementation of off-canvas-wrap directive.

Upvotes: 2

Related Questions