mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-18 11:05:16 +00:00
Angular: clarify meaning of @Injectable
decorator
This commit is contained in:
parent
9ceff1bca6
commit
b539d713b7
3
frontend/angular-io.js
vendored
3
frontend/angular-io.js
vendored
@ -185,8 +185,7 @@ class MyDirective() {}
|
||||
@Pipe({...})
|
||||
class MyPipe() {}
|
||||
|
||||
// Declares that a class has dependencies that should be injected into the constructor when the
|
||||
// dependency injector is creating an instance of this class.
|
||||
// Declares that a class can be injected into the constructor of another class by the dependency injector.
|
||||
@Injectable()
|
||||
class MyService() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user