javascript - angular 2+ how to init HTML elements on startup -
screen has input types text, checkbox, , radio, store data database. later when start application, main component calls service data, placed in "store" key. key id of corresponding component.
problem: though values place on screen present in "store", can't init fields.
used:
document.getelementbyid("consecreuse")
this returns null. tried late ngafterviewchecked.
i've considered "sloppy solution" of having timer trigger observable service - ugh!
help. in advance. yogi.
Comments
Post a Comment