Horje
directive multiple input Code Example
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

<li *ngFor = 'let opt of currentQuestion.options' 
    [selectable] = 'opt' 
    [first]='YourParameterHere'
    [second]='YourParameterHere'
    (selectedOption) = 'onOptionSelection($event)'>
    {{opt.option}}
</li>




Javascript

Related
jquery script cdn stackoverflow Code Example jquery script cdn stackoverflow Code Example
golang json omitempty struct Code Example golang json omitempty struct Code Example
javascript array erstellen Code Example javascript array erstellen Code Example
angular 8 enable routing Code Example angular 8 enable routing Code Example
make valid string for eval() Code Example make valid string for eval() Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7