Encapsulating LocalStorage Access In AngularJS

You have {{ vm.friends.length }} friends!

Log out ( will kill local storage ).