mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-10-29 00:04:06 -07:00
Angular: clarify meaning of @Injectable decorator thanks to @benelliott
This commit is contained in:
1 parent
0b2dbf425c
commit
a3b9824c4c
1 file changed
+2
-1
Vendored
+2
-1
@@ -185,7 +185,8 @@ class MyDirective() {}
|
|||||||
@Pipe({...})
|
@Pipe({...})
|
||||||
class MyPipe() {}
|
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()
|
@Injectable()
|
||||||
class MyService() {}
|
class MyService() {}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user