Chore: Upgraded to Angular, Angular Material and Angular Flex layout 8.0

This commit is contained in:
Amritanshu
2019-06-12 17:25:10 +05:30
parent 40eaa25c76
commit fea48e1a3e
114 changed files with 749 additions and 822 deletions

View File

@ -1,6 +1,7 @@
import {AfterViewInit, Component, ElementRef, OnInit, OnDestroy, ViewChild} from '@angular/core';
import {FormBuilder, FormGroup} from '@angular/forms';
import {MatAutocompleteSelectedEvent, MatDialog} from '@angular/material';
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
import { MatDialog } from '@angular/material/dialog';
import {ActivatedRoute, Router} from '@angular/router';
import {BehaviorSubject, fromEvent, Observable, of, of as observableOf, zip} from 'rxjs';
import {PurchaseDataSource} from './purchase-datasource';
@ -25,9 +26,9 @@ import {Hotkey, HotkeysService} from "angular2-hotkeys";
styleUrls: ['./purchase.component.css']
})
export class PurchaseComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild('accountElement') accountElement: ElementRef;
@ViewChild('productElement') productElement: ElementRef;
@ViewChild('dateElement') dateElement: ElementRef;
@ViewChild('accountElement', { static: true }) accountElement: ElementRef;
@ViewChild('productElement', { static: true }) productElement: ElementRef;
@ViewChild('dateElement', { static: true }) dateElement: ElementRef;
public inventoryObservable = new BehaviorSubject<Inventory[]>([]);
dataSource: PurchaseDataSource;
form: FormGroup;