goodeggs / angular-barcode-listener

Angular directive to listen for barcode scanner events
MIT License
16 stars 10 forks source link

How would I implement this in Angular2? #12

Open corbetmw opened 7 years ago

corbetmw commented 7 years ago

I am implementing this in this Angular2 boilerplate app: https://github.com/codediodeio/angular-firestarter.

How would I do this? I'm very lost. Thanks in advanced!

ghost commented 7 years ago

I have the exact same question. Have you found something yet?

corbetmw commented 7 years ago

I am about to upload a project where I have done something similar. I will post a link.

ghost commented 7 years ago

Thank you

On Aug 25, 2017 6:29 PM, "Matthew Corbett" notifications@github.com wrote:

I am about to upload a project where I have done something similar. I will post a link.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/goodeggs/angular-barcode-listener/issues/12#issuecomment-324912788, or mute the thread https://github.com/notifications/unsubscribe-auth/AZaKMxVhg-gsJMsi-q5UeIB6BCJK7RRuks5sbsVOgaJpZM4O09Kr .

corbetmw commented 7 years ago

Here is a link to the repo: https://github.com/corbetmw/sample-time-tracking

Look under ui/barcode-listener. You'll see that I've done something different than what's in this component. Mine is very basic. My scanner sends an "Enter" keydown at the end of each scan. Basically, all my component does is listeners for all input, and if it is an Enter, fires a function designated in the parent component.