comment pousser l'objet dans le tableau en angulaire d'une API

import { Component } from '@angular/core';
selector: 'my-app',
styleUrls: [ './app.component.css' ]
export class AppComponent {
name = 'Angular';
myArray = [1, 2, 3, 4, 5, 6];
addNew(){
myArray. push(this. myArray. length + 1);
Wicked Whale