Using the angular service properly