I'm not getting it... I'd like to do a get request on my service which gives me the specific hardware for the barcode i scanned - this works already.
I get the correct hardware back as an object, looks like this ->
But if I want to display this object now, I only get [object Object] in my frontend.
component.html
{{ terminal }}
component.ts
terminal: any[] = [];
constructor(private terminalService: TerminalService) { }
this.terminalService.getTerminalByBarcode(barcode).subscribe(terminal => {
console.log(terminal.terminal);
this.terminal = terminal.terminal;
});
I already tried with terminal: Object; but that doesn't change anything. Hope someone can tell me, where I'm thinking wrong of two way data binding?
