angular adding item to array cleas it code example Example: how to append element in array angular let object = [] object.push('string');