docs(cheatsheet): fix the ES5 snippets for services
This commit is contained in:
parent
42ccff859c
commit
c6f52e3282
|
@ -35,9 +35,8 @@ syntax(ts):
|
||||||
`@Injectable()
|
`@Injectable()
|
||||||
class MyService() {}`|`@Injectable()`
|
class MyService() {}`|`@Injectable()`
|
||||||
syntax(js):
|
syntax(js):
|
||||||
`var MyService = ng.core.Class({constructor: [OtherService, function(otherService) { }]});
|
`var OtherService = ng.core.Class({constructor: function() { }});
|
||||||
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) { }]});`
|
||||||
var MyService = ng.core.Injectable({...})`|`ng.core.Injectable({...})`
|
|
||||||
syntax(dart):
|
syntax(dart):
|
||||||
`@Injectable()
|
`@Injectable()
|
||||||
class MyService() {}`|`@Injectable()`
|
class MyService() {}`|`@Injectable()`
|
||||||
|
|
Loading…
Reference in New Issue