import { Component } from '@angular/core';

let max = 5;

@Component({
  selector: 'app-input',
  templateUrl: './input.component.html',
  styleUrls: ['./input.component.scss']
})
export class InputComponent {

  constructor() {}

  dividerColor: boolean;
  requiredField: boolean;
  floatingLabel: boolean;
  name: string;

  items: any[] = [{
    value: 10
  }, {
    value: 20
  }, {
    value: 30
  }, {
    value: 40
  }, {
    value: 50
  }];

  rows = 8;
  
  addABunch(n: number) {
    for (let x = 0; x < n; x++) {
      this.items.push({
        value: ++max
      });
    }
  }
}