hi there! how you guys doing ?
concept:
1/ i load txt msgs in listItems using a service with GET request. I load only txt not to have too much to load.
2/ in each listItem there is button and a image component. when pressing the button, it (shall) fires another service to GET the image att'd to that msg.
logic:
I thought I could for each element of image component set an id in the service mapping when loading data.
then, the img would hv been load to that element.id through getElementById('myElementId').src
error:
however, it returns 'cannot set property src of null'. meaning it doesn't find the element through the id 
thks in advance for your advice!
code:
1/ when loading msgs to listItem, img component has code in its mapping to set element.id :
2/ it seems working since the console.log returns element.id
3/ when pressing button 'view image', service will GET data and place into a localStorage. in that LS's mapping it has the following code:
4/ unfortunately, console.log throw the following error msg: