Very nice Sander!! I knew Ruby could have multiple returns, so it's great
to know that for Angular as well!
Harry
On Thursday, March 7, 2019 at 1:32:47 AM UTC-8, Sander Elias wrote:
>
> Hi Harry,
>
> something like:
> async findPrintAndScales() {
> try {
> await qz.websocket.connect();
> const printers = await qz.printers.find();
> const devices = await qz.hid.listDevices(false);
> await qz.websocket.disconnect();
> return [printers, devices];
> } catch (e) {
> console.log('uhOh', e);
> }
> }
>
> should do the trick.
>
> Regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.