Define an Angular Service

Share this video with your friends

Send Tweet

An Angular service is a simple ES2015 class with a decorator on top. In this lesson we take a look at the anatomy of a service, what the @Injectable decorator is about and why and when it is actually required.

ganqqwerty
ganqqwerty
~ 5 years ago

nice, I didn't know that @Injectable is not needed when you don't have dependencies