I have a list item created with service response, every item has a respective value either true or false . I want to point each record record with regard to their value (true/false).
If record has value true then it show "label1", and if it has false then it show label2.
For that i created a local storage variable mapped with that component,
when I put alert on that variable it is showing thier respective value, but when I am putting condition to show either "label1 or label2" it was changing the very first record only.
Also it is not working on page load, but I need it to be work on page load.
Javs Script code :
var cst = localStorage.getItem('cStatus');
var jnm = localStorage.getItem('jName');