$localStorage is an AngularJS service as factory, providing convenient method to store strings, object AND ARRAYS using HTML5 LocalStorage API