The Correct way to Assign value from a fetched function to a variable in Angular

preview_player
Показать описание
The correct way to Assign value from a fetched function to a variable in Angular

DO NOT USE ONINIT in Services, because it is useless

You need to get Child component to call the Service Function that assigns the value to a variable from Services, then I can use that global variable for my Child component code.
Рекомендации по теме
join shbcf.ru