[angular plugin] Fix handling of service method

Closes #267