Created
November 12, 2013 23:20
-
-
Save ryanseddon/7440641 to your computer and use it in GitHub Desktop.
Angular 1.2.0 breaks when you try and do ng-controller + ng-include on the one element due to priority changes in the directives. Here's a workaround to monkey patch the priority until this ships in a release. See issue https://github.com/angular/angular.js/issues/4431
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('app'); | |
app.config(function($provide) { | |
$provide.decorator('ngControllerDirective', ['$delegate', function($delegate) { | |
$delegate[0].priority = 900; | |
return $delegate; | |
}]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment