1 import {Component, OnInit, Renderer2} from '@angular/core';
2 import {ActivatedRoute} from '@angular/router';
3 import {NetService} from '@eg/core/net.service';
4 import {AuthService} from '@eg/core/auth.service';
7 templateUrl: 'bcsearch.component.html'
10 export class BcSearchComponent implements OnInit {
15 private route: ActivatedRoute,
16 private renderer: Renderer2,
17 private net: NetService,
18 private auth: AuthService
23 this.renderer.selectRootElement('#barcode-search-input').focus();
24 this.barcode = this.route.snapshot.paramMap.get('barcode');
32 alert('Searching for user ' + this.barcode);