Working Angularjs Code Sample on Plunkr: http://plnkr.co/edit/YJvbrV2AFq2r6LjSKeQU?p=preview
I’m using UI-Router (https://github.com/angular-ui/ui-router) for this example, as I really like the way that functions over angular’s built-in router.
Once you get used to “the angular way”, you’ll be building an angular.js application in no time.
Next up: Learn Angular Directives! http://www.youtube.com/watch?v=0r5QvzjjKDc
NOTE: At 30:15, there’s an error because I forgot to change the Home Controller to match the new service syntax on line 5:
$scope.friends = data;
Learning Web Development? Watch the FREE COURSE:
“Web Development for Absolute Beginners”!