How do I access Template Input Variables in my own Custom Structural Directive?
@Directive({
selector: "[myCustomDirective]"
})
export class MyCustomDirective {
}
The documentation says that A template input variable is a variable whose value you can reference within a single instance of the template.
<div *myCustomDirective="let visible = true"></div>
I know that the template now has an input called let-visible
but how do I access it?
------------------- EDIT -------------------
I want to be able to accept multiple Inputs using the structural directive. Is that possible?
I want one Input to be assigned to myCustomDirective
itself and one to visible
thats why I was trying to use the let visible
syntax like ngFor
does.