-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontroller.json
More file actions
65 lines (65 loc) · 2.3 KB
/
controller.json
File metadata and controls
65 lines (65 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"data": {
"id": "ember-4.10.0-Ember.@ember/controller",
"type": "class",
"attributes": {
"name": "Ember.@ember/controller",
"shortname": "@ember/controller",
"classitems": [],
"plugins": [],
"extensions": [],
"plugin_for": [],
"extension_for": [],
"module": "@ember/controller",
"namespace": "Ember",
"methods": [
{
"file": "packages/@ember/controller/index.ts",
"line": 344,
"description": "Creates a property that lazily looks up another controller in the container.\nCan only be used when defining another controller.\n\nExample:\n\n```js {data-filename=app/controllers/post.js}\nimport Controller, {\n inject as controller\n} from '@ember/controller';\n\nexport default class PostController extends Controller {\n @controller posts;\n}\n```\n\nClassic Class Example:\n\n```js {data-filename=app/controllers/post.js}\nimport Controller, {\n inject as controller\n} from '@ember/controller';\n\nexport default Controller.extend({\n posts: controller()\n});\n```\n\nThis example will create a `posts` property on the `post` controller that\nlooks up the `posts` controller in the container, making it easy to reference\nother controllers.",
"itemtype": "method",
"name": "inject",
"static": 1,
"since": "1.10.0",
"params": [
{
"name": "name",
"description": "(optional) name of the controller to inject, defaults to\n the property's name",
"type": "String"
}
],
"return": {
"description": "injection decorator instance",
"type": "ComputedDecorator"
},
"access": "public",
"tagname": "",
"class": "Ember.@ember/controller",
"module": "@ember/controller"
}
],
"events": [],
"properties": []
},
"relationships": {
"parent-class": {
"data": null
},
"descendants": {
"data": []
},
"module": {
"data": {
"id": "ember-4.10.0-ember/controller",
"type": "module"
}
},
"project-version": {
"data": {
"id": "ember-4.10.0",
"type": "project-version"
}
}
}
}
}