In a recent technical interview, I was asked to discuss the difference between two-way data binding and one-way data flow. From what I gather, this has become a fairly common interview question, and beyond that, I think it’s just an important concept to understand as a developer.
I recently came across an article – it’s a few years old now, but still relevant I think – about how a very wide swath of the internet relies on data from the Foursqaure API: https://techcrunch.com/2013/03/29/the-internet-needs-foursquare-to-succeed/. In addition to the wealth of data it offers, a big part of what makes the Foursqaure API so appealing to me is its excellent documentation. I spent some time working with the API and integrating it with an Angular app, so I’d like to walk through my process.
I recently wrote a Single Page App (SPA) called Vegan Food Finder, which features an Angular frontend and a Rails backend. It was a somewhat lengthy and involved process, but for the purposes of this blog entry, I’d like to focus specifically on how I got Angular communicating with my Rails backend.