You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently codelyzer doesn't allow to rename inputs of a directive other than its selector.
@Directive({selector: '[appHighlight]',})exportclassHighlightDirective{// works with codelyzer 4.4
@Input('appHighlight')visible=true;// still an error
@Input('appHighlightColor')color='yellow';}
<h1appHighlightappHighlightColor="red">Demo</h1>
In example above HighlightDirective#color have alias prefixed with directive's selector to prevent name collisions within the template(if component or other directive have same input prop).
Currently codelyzer doesn't allow to rename inputs of a directive other than its selector.
In example above
HighlightDirective#color
have alias prefixed with directive's selector to prevent name collisions within the template(if component or other directive have same input prop).If this means anything,
@angular/material
uses this convention(for example: https://github.com/angular/material2/blob/6.4.6/src/lib/sort/sort.ts#L76)Thank you for this amazing project!
The text was updated successfully, but these errors were encountered: