Add angularjs services method support