Is it possible to utilize the spread operator in an Angular template?
I came across this question and answer. According to the accepted response, using the spread operator in a template is not feasible:
It's unlikely that you're going to get this syntax to work in a template (there are many valid typescript constructs that don't work in templates).
However, another answer I found suggests that it is indeed achievable.
Upon trying to implement it myself, I encountered an error.
Unexpected token ., expected identifier, keyword, or string at column 2 in
I'm looking for clarification. Can the spread operator be used in an Angular template? For instance:
<div> [user]='{...member}'</div>
<!--where member is an object-->