/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Component, NgModule} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {BrowserModule} from '@angular/platform-browser'; @Component({ selector: 'app', template: `
` }) export class AppComponent { copies: number[] = []; values: string[] = []; constructor() { for (let i = 0; i < 50; i++) { this.values[i] = `someValue${i}`; } } setCopies(count: number) { this.copies = []; for (let i = 0; i < count; i++) { this.copies.push(i); } } } @NgModule({ imports: [BrowserModule, FormsModule], bootstrap: [AppComponent], declarations: [AppComponent] }) export class AppModule { }