Why not this.container.innerHTML = ''; ??