How can I ask about the size of an array in angular 2 when I am using it in a component, for example:
users : User[];
with
export class User {
id : number;
firstName : String;
lastName : String;
userName : String
}
and
<tbody>
<tr *ngFor="let user of users">
<th scope="row">{{ user.id }}</th>
<td>{{ user.firstName }}</td>
<td>{{ user.lastName }}</td>
<td>{{ user.userName }}</td>
</tr>
</tbody>
what should be the way to ask for the size on array inside a *ngIf expression using interpolation to detect it the size is different to empty?