For Example using @if
, I am able to do this: @if(items$ | async; as items
). I am able to declare 'items' as a variable holding the array of items using the 'as' keyword in the template.
How can I achieve the same thing using @defer?
Something like: @defer(when items$ | async; as items)
I tried @defer(when items$ | async; as items)
but angular template does not like it.
when items$ | async
without the variable working. Consider opening a feature request on angular github – Raindrop