user add array each time with a string in angular code example Example: how to append element in array angular let object = [] object.push('string');