

Unfortunately because new items are appended at the bottom, the div can quickly fill up with scroll bars and new messages are no longer in view.įixing this is simple. If that’s all it had to do there would be no need for an event emitter. The component for the console simply data-binds the console messages to a bunch of text contained inside of a div element. You can see that emitting an event is easy, but what does it look like consuming it? You essentially end up observing a collection and are handed off “items” like an iterator and then can deal with it as you choose. In a nutshell, this library provides a different mechanism for dealing with asynchronous workflows and streams. Angular 2 relies heavily on Reactive Extensions for JavaScript (RxJS). Now you may notice there is a new class (to some) for notifying subscribers when a console message is sent. A service holds an array of strings, splices them when it gets beyond a certain size, and exposes a method to clear them. The first thing I needed was a decent console to give information to the user. Want to see it in action? Here is the running version.
6502 emulator c source code code#
I also wrote it the first time several years back, so I had a good baseline of code to draw from. I’ve always been fascinated with the Commodore 64 and the 6502 chipset is not a tough one to emulate.

In preparation for an upcoming webinar I decided to build a sizeable Angular 2 project.
