docs(cheatsheet): fix the ES5 snippets for services
This commit is contained in:
parent
42ccff859c
commit
c6f52e3282
|
@ -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()`
|
||||
|
|
Loading…
Reference in New Issue