Actually inserts the real data into the label.
This commit is contained in:
parent
95fe8e413d
commit
d0f730128c
|
@ -10,7 +10,7 @@ import {SettingsService} from '../services/settings.service';
|
||||||
templateUrl: './label-layout.component.html',
|
templateUrl: './label-layout.component.html',
|
||||||
styleUrls: ['./label-layout.component.scss']
|
styleUrls: ['./label-layout.component.scss']
|
||||||
})
|
})
|
||||||
export class LabelLayoutComponent {
|
export class LabelLayoutComponent implements OnInit {
|
||||||
@Input() dateCreated: Date;
|
@Input() dateCreated: Date;
|
||||||
@Input() barCode: string;
|
@Input() barCode: string;
|
||||||
@Input() initials: string;
|
@Input() initials: string;
|
||||||
|
@ -20,11 +20,13 @@ export class LabelLayoutComponent {
|
||||||
|
|
||||||
constructor(private settingsService: SettingsService) {
|
constructor(private settingsService: SettingsService) {
|
||||||
this.settings = this.settingsService.getSettings();
|
this.settings = this.settingsService.getSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
this.sample = {
|
this.sample = {
|
||||||
barcode: '',
|
barcode: '',
|
||||||
student_id: '123456789',
|
student_id: this.barCode,
|
||||||
initials: 'ABCDE',
|
initials: this.initials,
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
location: this.settings.locationId,
|
location: this.settings.locationId,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue