Let's say you have an *ngFor loop and you want to save a value of the current loop away into a variable in typescript. Is there a good way to do this?
Example
<tr *ngFor="let item of items | async">
<td>{{item.one}}</td>
<td>{{item.two}}</td> <-- I want to save this one away -->
<td>{{item.three}}</td>
</tr>
Typescript
this.itemCollection = this.afs.collection(CollectionIntf);
this.items= this.itemCollection.valueChanges();
So far I've been using using <iframe (load)=saveIntoVar(item.two)></iframe>. There's got to be a better way of doing this, since this iframe method doesn't always seem to work.
one,two,three? What does "save" mean?item. Save means to store it away into a typescript variable, as I mentioned in the first sentence.