TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mandar Shinde
NA
423
115.7k
On click another row of a table is getting highlighted
Apr 6 2019 12:29 AM
I want to highlight the row on which i am clicking.
I am highlight last record/row of table with his id in angular 6. what i am doing is-
I am retriving some records from a database and showing in dynamic table.This is code of highlighting
last record
<tr *ngFor="let item of items1 ; let i = index; let last = last"
(show) ="Highlighted(item,item.ID)" (click)="GetData(item,item.ID)"
[ngClass]="{highlight : last}" id="cursor">
But when i click on other record that record/row and last row both are highlited.I want to highlight that row which i am clicking on. Any help will be appericiated.
Reply
Answers (
2
)
How to highlight last record/row of a table
500 Internal Server Error with wordpress site