By CenturyLink Cloud Product Management
Some of you might remember a Backbone blogging engine I made a while back. It certainly wasn’t the most advanced use case for Backbone, but I think that it did a decent job of elucidating some of Backbone’s features: event-driven responsiveness, templating, collections, and so on. It was also a great learning experience and my first foray into thick client-style development.
But then a few weeks ago, a number of trusted friends and colleagues began raving about AngularJS. Curious about what the fuss was about, I began doing some exploring, looking at sample apps, reading the API docs, and watching a few videos, and it became abundantly clear that Angular is an almost shockingly powerful library. I was surprised by the kinds of heavy lifting that can be accomplished with little effort. And so I set out to see how concisely I could re-implement my Backbone project in Angular.
I was quite pleased with the result.
The first thing you need to do is specify within your
<html> tag itself–I know, crazy, right?–that your HTML page is going to be staging an Angular app. Instead of the typical
<html> tag, you need to insert a
<html ng-app> tag instead. As you’ll see...