I have ion-list with ion-items; I want the last item in a group to have no bottom border. no-lines seems to be the property/class/style I need to use with last. However this doesn’t work: [no-lines] = ‘last’ (this results in an error “no-lines is not an attribute of ion-item”) or [style.no-lines] = ‘last’ or [class.no-lines] = ‘last’. Please help
Why not just solving that with css respectively without adding anything with angular?
Use :last-child
selector
Not the correct css but something like
ion-list ion-item.item-block.item:last-child {
}
Or if you want to apply something on all child except the last one
ion-list ion-item.item-block.item:not(:last-child) {
}