Php Loop Through Object Array Typescript Vs Angular