Skip to content

Commit c6f52e3

Browse files
committed
docs(cheatsheet): fix the ES5 snippets for services
1 parent 42ccff8 commit c6f52e3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

modules/angular2/docs/cheatsheet/class-decorators.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ syntax(ts):
3535
`@Injectable()
3636
class MyService() {}`|`@Injectable()`
3737
syntax(js):
38-
`var MyService = ng.core.Class({constructor: [OtherService, function(otherService) { }]});
39-
var OtherService = ng.core.Class({constructor: function() { }});`
40-
var MyService = ng.core.Injectable({...})`|`ng.core.Injectable({...})`
38+
`var OtherService = ng.core.Class({constructor: function() { }});
39+
var MyService = ng.core.Class({constructor: [OtherService, function(otherService) { }]});`|`var MyService = ng.core.Class({constructor: [OtherService, function(otherService) { }]});`
4140
syntax(dart):
4241
`@Injectable()
4342
class MyService() {}`|`@Injectable()`

0 commit comments

Comments
 (0)