From c6f52e3282b1d4a6bcdaefbc388c7adc39eb7963 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 15 Dec 2015 01:27:19 -0800 Subject: [PATCH] docs(cheatsheet): fix the ES5 snippets for services --- modules/angular2/docs/cheatsheet/class-decorators.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/angular2/docs/cheatsheet/class-decorators.md b/modules/angular2/docs/cheatsheet/class-decorators.md index b1d0a768e9..e1862e764e 100644 --- a/modules/angular2/docs/cheatsheet/class-decorators.md +++ b/modules/angular2/docs/cheatsheet/class-decorators.md @@ -35,9 +35,8 @@ syntax(ts): `@Injectable() class MyService() {}`|`@Injectable()` syntax(js): -`var MyService = ng.core.Class({constructor: [OtherService, function(otherService) { }]}); -var OtherService = ng.core.Class({constructor: function() { }});` -var MyService = ng.core.Injectable({...})`|`ng.core.Injectable({...})` +`var OtherService = ng.core.Class({constructor: function() { }}); +var MyService = ng.core.Class({constructor: [OtherService, function(otherService) { }]});`|`var MyService = ng.core.Class({constructor: [OtherService, function(otherService) { }]});` syntax(dart): `@Injectable() class MyService() {}`|`@Injectable()`