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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -