ng service for managing arrays