I have a question about angularJS.
I would like to use ng-repeart to create a program that changes the background color when I click on an item from the displayed list.This time I want to run the following program using the data binding function of angularJS, but it doesn't work. The list looped with ng-repeart contains multiple keys and values.This time, I would like to have a key called style with a CSS as one of the keys.
HTML File Side
JS File Side
Currently, the data is bound and the code is changed, but the way it looks remains the same.
How do I deal with this situation?
Will this not work?
© 2022 OneMinuteCode. All rights reserved.