Actually inserts the real data into the label.

This commit is contained in:
Aaron Louie 2020-11-16 08:18:15 -05:00
parent 95fe8e413d
commit d0f730128c
1 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import {SettingsService} from '../services/settings.service';
templateUrl: './label-layout.component.html',
styleUrls: ['./label-layout.component.scss']
})
export class LabelLayoutComponent {
export class LabelLayoutComponent implements OnInit {
@Input() dateCreated: Date;
@Input() barCode: string;
@Input() initials: string;
@ -20,11 +20,13 @@ export class LabelLayoutComponent {
constructor(private settingsService: SettingsService) {
this.settings = this.settingsService.getSettings();
}
ngOnInit() {
this.sample = {
barcode: '',
student_id: '123456789',
initials: 'ABCDE',
student_id: this.barCode,
initials: this.initials,
date: new Date(),
location: this.settings.locationId,
};