Is there a way to pass an object as a parameter in the DOM on this forum?
Within my HTML code, I have the following:
<div class="list-items">
<ul>
<li *ngFor="let i of item">
<span (click)="onAdd({{newUser.username}},{{i}})"
class="glyphicon glyphicon-plus">
</span>
{{ i.name }}
</li>
</ul>
</div>
I am encountering errors with both {{newUser.username}}
and {{i}}
.
My main concern is about passing the {{i}}
element.