From b539d713b73b6f011c55d45967a70c9d4c964635 Mon Sep 17 00:00:00 2001 From: Ben Elliott <4996462+benelliott@users.noreply.github.com> Date: Mon, 25 Jun 2018 23:38:03 +0100 Subject: [PATCH] Angular: clarify meaning of `@Injectable` decorator --- frontend/angular-io.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/angular-io.js b/frontend/angular-io.js index f9e9b99..863d4e6 100644 --- a/frontend/angular-io.js +++ b/frontend/angular-io.js @@ -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() {}