Foreach Array Function In Angular How Does The Parent