1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-10-12 22:38:04 +00:00

Angular: clarify meaning of @Injectable decorator thanks to @benelliott

This commit is contained in:
Julien LE COUPANEC 2018-06-26 09:50:13 +01:00
parent 0b2dbf425c
commit a3b9824c4c

3
frontend/angular.js vendored
View File

@ -185,7 +185,8 @@ class MyDirective() {}
@Pipe({...})
class MyPipe() {}
// Declares that a class can be injected into the constructor of another class by the dependency injector.
// Declares that a class can be injected into the constructor of another class
// by the dependency injector.
@Injectable()
class MyService() {}