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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -