Skip to content

Instantly share code, notes, and snippets.

@ryanseddon
Created November 12, 2013 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanseddon/7440641 to your computer and use it in GitHub Desktop.
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
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