directive multiple input
// Add properties into the Directive class with @Input() decorator
@Directive({
selector: '[selectable]'
})
export class SelectableDirective{
private el: HTMLElement;
@Input('selectable') option:any;
@Input('first') f;
@Input('second') s;
...
}
//And in the template pass bound properties to your li element
{{opt.option}}
|