Friday, November 29, 2013

Yet Another Integration: AngularJS

I had some spare time, so I decided to put together some code to make a PoC integration between our Lightstreamer JavaScript client library and Google's AngularJS.

The integration went smoothly: simply prepare the view using AngularJS syntax, then populate the associated model object with the data flowing in from the Lightstreamer subscription. At each update, ask AngularJS to refresh the view and you're done!

Let me show it to you right here through a simple recipe.

You need a bit of HTML: And a pinch of JavaScript: And you get this:
{{item.stock_name}}: {{item.last_price}}

After completing my exercise, I discovered ng-grid. I wanted to try that too and so I quickly did.

You can head to GitHub to find the full source of the complete demo application.

And you can see the final result live.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.