Add query as Angular service