mapping from $ in REST response not executing JS
I have a service which calls an appery back end, that all works fine, i can map it to say a list in my page from $ and all is well.
However, whenever I try to map the $ to a localStorage variable and then addsome JS, that JS is never executed.
No errors are showing in console, and I can tell the service is executed succesfully as i have a console.log in the success event. But anything I put in the JS for the mapping, even a simple console.log is never executed.
Am i missing something obvious?