<ng-container "let test= someList[1]"></ng-container>
I want use variable in ng-container
But that code is not working. How to make it right?
<ng-container "let test= someList[1]"></ng-container>
I want use variable in ng-container
But that code is not working. How to make it right?
Try this
<ng-container "let test = someList[1]">
{{test.name}} //if someList[1] is an object
{{test}} //if someList[1] is something like [1,2,3....]
</ng-container>