Context variables of ng-template not recognized

When using an Angular project and ng-template with context variables, the variables  (myvar in the sample) aren't recognized / defined.

Is it a bug or by design?

 

Sample Code:

<ng-template #myTemplate let-myvar></ng-template>



Please sign in to leave a comment.