Quantcast
Channel: How to get last child *ngFor list of components - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Nithya Rajan for How to get last child *ngFor list of components

You can use *ngFor - last variable to check whether the element is the last element or not.if it's a last element of the loop then last variable will become true, so we can use [ngClass] to add/remove...

View Article



How to get last child *ngFor list of components

I got a component that is called users-list. Inside this component there is *ngFor of directory-user component.<directory-user-card *ngFor="let directoryUser of directoryUsers"...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images