Angular Array Insert Function