-
Notifications
You must be signed in to change notification settings - Fork 13
self-closing tag must be used to see an error when directive is used as a provider #635
Comments
http://blog.teamtreehouse.com/to-close-or-not-to-close-tags-in-html5 |
Thanks, then in his case I think error message should be |
In above case I intentionally passed |
@zoechi I don't think you're reading that blog correctly..? (Or I'm not!) They mention
And when they say "forbidden to be closed" I beleive they are referring to syntax like Note that they say:
and then say:
In any case, the error message here would be wrong. I'll look into this! Thanks for filing! |
@MichaelRFairhurst I'm sorry. I again mixed something up.
|
This title should probably be changed. There is an error in this: import 'package:angular/angular.dart';
import 'package:angular_components/angular_components.dart';
@Component(
selector: 'todo-list',
styleUrls: ['todo_list_component.css'],
templateUrl: 'todo_list_component.html',
directives: [],
providers: [MaterialToggleComponent],
)
class TodoListComponent{} should move import 'package:angular/angular.dart';
import 'package:angular_components/angular_components.dart';
@Component(
selector: 'todo-list',
styleUrls: ['todo_list_component.css'],
templateUrl: 'todo_list_component.html',
directives: [MaterialToggleComponent],
providers: [],
)
class TodoListComponent{} Was this an error simply in the filing of this issue, or was this an actual error in the code? If the latter this would, very strangely, make the issue backwards, like a self-closing tag must be used to see an error. I'm thinking that might be explained by a caching issue or a crash. |
In above case I intentionally passed |
todo_list_component.dart:
todo_list_component.html:
warning when a self closing tag
<br/>
is used.No warning in this case:
angular_analyzer_plugin version: 0.0.17+3
Dart VM version: 2.0.0
The text was updated successfully, but these errors were encountered: