-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontroller.json
More file actions
96 lines (96 loc) · 3.92 KB
/
controller.json
File metadata and controls
96 lines (96 loc) · 3.92 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"data": {
"id": "ember-4.10.0-@ember/controller",
"type": "module",
"attributes": {
"name": "@ember/controller",
"submodules": {},
"elements": {},
"fors": {
"Ember.ControllerMixin": 1,
"@ember/controller": 1
},
"namespaces": {
"Ember": 1
},
"tag": "module",
"file": "packages/@ember/controller/index.ts",
"line": 335,
"parent": null,
"publicclasses": [
"Ember.Controller"
],
"privateclasses": [
"Ember.ControllerMixin"
],
"staticfunctions": {
"Ember.@ember/controller": [
{
"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```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```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"
}
]
},
"allstaticfunctions": {
"Ember.@ember/controller": [
{
"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```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```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"
}
]
},
"version": "4.10.0"
},
"relationships": {
"classes": {
"data": []
},
"project-version": {
"data": {
"id": "ember-4.10.0",
"type": "project-version"
}
}
}
}
}