From a3b9824c4c9c9fe8243c2ab1311157fd23033ae0 Mon Sep 17 00:00:00 2001 From: Julien LE COUPANEC Date: Tue, 26 Jun 2018 09:50:13 +0100 Subject: [PATCH] Angular: clarify meaning of `@Injectable` decorator thanks to @benelliott --- frontend/angular.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/angular.js b/frontend/angular.js index 863d4e6..9229cf8 100644 --- a/frontend/angular.js +++ b/frontend/angular.js @@ -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() {}