Skip to content

Commit 095def3

Browse files
author
Tim Blasi
committed
refactor(dart/transform): Add warning about issue angular#1747
Add a more descriptive warning about the lack of support for `Directive` dependency aliases and a pointer to more information.
1 parent 153660f commit 095def3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/angular2/src/transform/template_compiler/view_definition_creator.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@ class _TemplateExtractVisitor extends Object with RecursiveAstVisitor<Object> {
254254
if (_metadataMap.containsKey(name)) {
255255
viewDef.directives.add(_metadataMap[name]);
256256
} else {
257-
logger.warning('Could not find Directive entry for $name');
257+
logger.warning('Could not find Directive entry for $name. '
258+
'Please be aware that reusable, pre-defined lists of Directives '
259+
'(aka "directive aliases") are not yet supported and will cause '
260+
'your application to misbehave. '
261+
'See https://github.com/angular/angular/issues/1747 for details.');
258262
}
259263
}
260264
}

0 commit comments

Comments
 (0)