You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] bug report => search github for a similar issue or PR before submitting
[ x ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Right now ngFor renders a list of data as DOM elements.
Expected/desired behavior
I am suggesting that the first element is rendered with a "first-child" class and the last with a "last-child" class.
What is the motivation / use case for changing the behavior?
Would make styling lists easier.
Angular version: 2.0.0-rc.4
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Language: [all | TypeScript X.X | ES6/7 | ES5]
The text was updated successfully, but these errors were encountered:
dopatraman
changed the title
Can we add "first-child" and "last-child" classes to ngFor
Can we add "first-child" and "last-child" classes to ngFor?
Aug 16, 2016
I'm submitting a ... (check one with "x")
Current behavior
Right now
ngFor
renders a list of data as DOM elements.Expected/desired behavior
I am suggesting that the first element is rendered with a "first-child" class and the last with a "last-child" class.
What is the motivation / use case for changing the behavior?
Would make styling lists easier.
The text was updated successfully, but these errors were encountered: