docs(cheatsheet): fix the ES5 snippets for services

This commit is contained in:
Igor Minar 2015-12-15 01:27:19 -08:00
parent 42ccff859c
commit c6f52e3282
1 changed files with 2 additions and 3 deletions

View File

@ -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()`