diff --git a/lib/directive.dart b/lib/directive.dart index a140c90e2..192c5ac65 100644 --- a/lib/directive.dart +++ b/lib/directive.dart @@ -40,6 +40,10 @@ class Directive { // It would be awesome if $transclude could be an enum. $transclude = reflectStaticField(type, '\$transclude'); $template = reflectStaticField(type, '\$template'); + $priority = reflectStaticField(type, '\$priority'); + if ($priority == null) { + $priority = 0; + } isStructural = $transclude != null; var $selector = reflectStaticField(type, r'$selector'); if ($selector != null) {