mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 14:01:35 +00:00
Angular: clarify meaning of @Injectable decorator thanks to @benelliott
This commit is contained in:
3
frontend/angular.js
vendored
3
frontend/angular.js
vendored
@@ -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() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user