Api Calls Using Javascript In Angular How Does The Parent