how to display in an array in the form of object in angular using typescript code example Example: typescript how to create an array instance var myInstance:MyArrayType[] = [];