ember-source 4.3.0-alpha.2 → 4.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +10 -10
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +300 -279
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +0 -1
- package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +3 -3
- package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +52 -52
- package/dist/packages/@ember/-internals/glimmer/index.js +26 -58
- package/dist/packages/@ember/-internals/routing/lib/location/auto_location.js +3 -1
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +5 -2
- package/dist/packages/@ember/-internals/routing/lib/services/routing.js +3 -1
- package/dist/packages/@ember/-internals/routing/lib/system/route.js +16 -4
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +14 -3
- package/dist/packages/@ember/-internals/routing/lib/utils.js +2 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +32 -32
- package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +1 -0
- package/dist/packages/@ember/-internals/runtime/lib/mixins/comparable.js +4 -4
- package/dist/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +29 -29
- package/dist/packages/@ember/-internals/runtime/lib/mixins/promise_proxy.js +16 -16
- package/dist/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +48 -48
- package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +8 -8
- package/dist/packages/@ember/-internals/runtime/lib/system/namespace.js +1 -2
- package/dist/packages/@ember/-internals/runtime/lib/type-of.js +1 -1
- package/dist/packages/@ember/-internals/utils/index.js +8 -8
- package/dist/packages/@ember/-internals/views/lib/system/utils.js +1 -0
- package/dist/packages/@ember/array/index.js +1 -1
- package/dist/packages/@ember/object/compat.js +16 -7
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +224 -242
- package/package.json +2 -2
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "4.3.0-alpha.
|
|
6
|
+
"version": "4.3.0-alpha.3"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -1083,12 +1083,10 @@
|
|
|
1083
1083
|
"name": "packages/@ember/-internals/runtime/lib/system/namespace.js",
|
|
1084
1084
|
"modules": {},
|
|
1085
1085
|
"classes": {
|
|
1086
|
-
"
|
|
1086
|
+
"Namespace": 1
|
|
1087
1087
|
},
|
|
1088
1088
|
"fors": {},
|
|
1089
|
-
"namespaces": {
|
|
1090
|
-
"Ember": 1
|
|
1091
|
-
}
|
|
1089
|
+
"namespaces": {}
|
|
1092
1090
|
},
|
|
1093
1091
|
"packages/@ember/-internals/runtime/lib/system/object.d.ts": {
|
|
1094
1092
|
"name": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
@@ -1776,7 +1774,7 @@
|
|
|
1776
1774
|
"namespaces": {},
|
|
1777
1775
|
"tag": "main",
|
|
1778
1776
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
1779
|
-
"line":
|
|
1777
|
+
"line": 37,
|
|
1780
1778
|
"description": "[Glimmer](https://github.com/tildeio/glimmer) is a templating engine used by Ember.js that is compatible with a subset of the [Handlebars](http://handlebarsjs.com/) syntax.\n\n### Showing a property\n\nTemplates manage the flow of an application's UI, and display state (through\nthe DOM) to a user. For example, given a component with the property \"name\",\nthat component's template can use the name in several ways:\n\n```app/components/person-profile.js\nimport Component from '@ember/component';\n\nexport default Component.extend({\n name: 'Jill'\n});\n```\n\n```app/components/person-profile.hbs\n{{this.name}}\n<div>{{this.name}}</div>\n<span data-name={{this.name}}></span>\n```\n\nAny time the \"name\" property on the component changes, the DOM will be\nupdated.\n\nProperties can be chained as well:\n\n```handlebars\n{{@aUserModel.name}}\n<div>{{@listOfUsers.firstObject.name}}</div>\n```\n\n### Using Ember helpers\n\nWhen content is passed in mustaches `{{}}`, Ember will first try to find a helper\nor component with that name. For example, the `if` helper:\n\n```app/components/person-profile.hbs\n{{if this.name \"I have a name\" \"I have no name\"}}\n<span data-has-name={{if this.name true}}></span>\n```\n\nThe returned value is placed where the `{{}}` is called. The above style is\ncalled \"inline\". A second style of helper usage is called \"block\". For example:\n\n```handlebars\n{{#if this.name}}\n I have a name\n{{else}}\n I have no name\n{{/if}}\n```\n\nThe block form of helpers allows you to control how the UI is created based\non the values of properties.\nA third form of helper is called \"nested\". For example here the concat\nhelper will add \" Doe\" to a displayed name if the person has no last name:\n\n```handlebars\n<span data-name={{concat this.firstName (\n if this.lastName (concat \" \" this.lastName) \"Doe\"\n)}}></span>\n```\n\nEmber's built-in helpers are described under the [Ember.Templates.helpers](/ember/release/classes/Ember.Templates.helpers)\nnamespace. Documentation on creating custom helpers can be found under\n[helper](/ember/release/functions/@ember%2Fcomponent%2Fhelper/helper) (or\nunder [Helper](/ember/release/classes/Helper) if a helper requires access to\ndependency injection).\n\n### Invoking a Component\n\nEmber components represent state to the UI of an application. Further\nreading on components can be found under [Component](/ember/release/classes/Component).",
|
|
1781
1779
|
"itemtype": "main"
|
|
1782
1780
|
},
|
|
@@ -1830,7 +1828,6 @@
|
|
|
1830
1828
|
"Ember.MutableEnumerable": 1,
|
|
1831
1829
|
"RegistryProxyMixin": 1,
|
|
1832
1830
|
"Ember.TargetActionSupport": 1,
|
|
1833
|
-
"Ember.Namespace": 1,
|
|
1834
1831
|
"Ember.ActionSupport": 1,
|
|
1835
1832
|
"Ember.ClassNamesSupport": 1,
|
|
1836
1833
|
"Ember.ViewMixin": 1,
|
|
@@ -1985,6 +1982,7 @@
|
|
|
1985
1982
|
"elements": {},
|
|
1986
1983
|
"classes": {
|
|
1987
1984
|
"@ember/application": 1,
|
|
1985
|
+
"Namespace": 1,
|
|
1988
1986
|
"Application": 1,
|
|
1989
1987
|
"ApplicationInstance": 1,
|
|
1990
1988
|
"ApplicationInstance.BootOptions": 1
|
|
@@ -2507,7 +2505,7 @@
|
|
|
2507
2505
|
"module": "@ember/component",
|
|
2508
2506
|
"namespace": "",
|
|
2509
2507
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
2510
|
-
"line":
|
|
2508
|
+
"line": 37,
|
|
2511
2509
|
"description": "Ember Helpers are functions that can compute values, and are used in templates.\nFor example, this code calls a helper named `format-currency`:\n\n```app/templates/application.hbs\n<Cost @cents={{230}} />\n```\n\n```app/components/cost.hbs\n<div>{{format-currency @cents currency=\"$\"}}</div>\n```\n\nAdditionally a helper can be called as a nested helper.\nIn this example, we show the formatted currency value if the `showMoney`\nnamed argument is truthy.\n\n```handlebars\n{{if @showMoney (format-currency @cents currency=\"$\")}}\n```\n\nHelpers defined using a class must provide a `compute` function. For example:\n\n```app/helpers/format-currency.js\nimport Helper from '@ember/component/helper';\n\nexport default class extends Helper {\n compute([cents], { currency }) {\n return `${currency}${cents * 0.01}`;\n }\n}\n```\n\nEach time the input to a helper changes, the `compute` function will be\ncalled again.\n\nAs instances, these helpers also have access to the container and will accept\ninjected dependencies.\n\nAdditionally, class helpers can call `recompute` to force a new computation.",
|
|
2512
2510
|
"extends": "CoreObject",
|
|
2513
2511
|
"access": "public",
|
|
@@ -2872,7 +2870,7 @@
|
|
|
2872
2870
|
"module": "ember",
|
|
2873
2871
|
"namespace": "",
|
|
2874
2872
|
"file": "packages/@ember/-internals/routing/lib/services/routing.ts",
|
|
2875
|
-
"line":
|
|
2873
|
+
"line": 15,
|
|
2876
2874
|
"description": "The Routing service is used by LinkTo, and provides facilities for\nthe component/view layer to interact with the router.\n\nThis is a private service for internal usage only. For public usage,\nrefer to the `Router` service.",
|
|
2877
2875
|
"access": "private",
|
|
2878
2876
|
"tagname": ""
|
|
@@ -3067,7 +3065,7 @@
|
|
|
3067
3065
|
"module": "@ember/array",
|
|
3068
3066
|
"namespace": "",
|
|
3069
3067
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
3070
|
-
"line":
|
|
3068
|
+
"line": 1327,
|
|
3071
3069
|
"description": "This mixin defines the API for modifying array-like objects. These methods\ncan be applied only to a collection that keeps its items in an ordered set.\nIt builds upon the Array mixin and adds methods to modify the array.\nOne concrete implementations of this class include ArrayProxy.\n\nIt is important to use the methods in this class to modify arrays so that\nchanges are observable. This allows the binding system in Ember to function\ncorrectly.\n\n\nNote that an Array can change even if it does not implement this mixin.\nFor example, one might implement a SparseArray that cannot be directly\nmodified, but if its underlying enumerable changes, it will change also.",
|
|
3072
3070
|
"uses": [
|
|
3073
3071
|
"EmberArray",
|
|
@@ -3087,7 +3085,7 @@
|
|
|
3087
3085
|
"module": "ember",
|
|
3088
3086
|
"namespace": "",
|
|
3089
3087
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
3090
|
-
"line":
|
|
3088
|
+
"line": 1748,
|
|
3091
3089
|
"description": "The NativeArray mixin contains the properties needed to make the native\nArray support MutableArray and all of its dependent APIs. Unless you\nhave `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Array` set to\nfalse, this will be applied automatically. Otherwise you can apply the mixin\nat anytime by calling `Ember.NativeArray.apply(Array.prototype)`.",
|
|
3092
3090
|
"uses": [
|
|
3093
3091
|
"MutableArray",
|
|
@@ -3298,18 +3296,18 @@
|
|
|
3298
3296
|
"access": "public",
|
|
3299
3297
|
"tagname": ""
|
|
3300
3298
|
},
|
|
3301
|
-
"
|
|
3302
|
-
"name": "
|
|
3303
|
-
"shortname": "
|
|
3299
|
+
"Namespace": {
|
|
3300
|
+
"name": "Namespace",
|
|
3301
|
+
"shortname": "Namespace",
|
|
3304
3302
|
"classitems": [],
|
|
3305
3303
|
"plugins": [],
|
|
3306
3304
|
"extensions": [],
|
|
3307
3305
|
"plugin_for": [],
|
|
3308
3306
|
"extension_for": [],
|
|
3309
|
-
"module": "ember",
|
|
3310
|
-
"namespace": "
|
|
3307
|
+
"module": "@ember/application",
|
|
3308
|
+
"namespace": "",
|
|
3311
3309
|
"file": "packages/@ember/-internals/runtime/lib/system/namespace.js",
|
|
3312
|
-
"line":
|
|
3310
|
+
"line": 19,
|
|
3313
3311
|
"description": "A Namespace is an object usually used to contain other objects or methods\nsuch as an application or framework. Create a namespace anytime you want\nto define one of these new containers.\n\n# Example Usage\n\n```javascript\nMyFramework = Ember.Namespace.create({\n VERSION: '1.0.0'\n});\n```",
|
|
3314
3312
|
"extends": "EmberObject",
|
|
3315
3313
|
"access": "public",
|
|
@@ -6115,19 +6113,19 @@
|
|
|
6115
6113
|
},
|
|
6116
6114
|
{
|
|
6117
6115
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6118
|
-
"line":
|
|
6116
|
+
"line": 104,
|
|
6119
6117
|
"class": "Component",
|
|
6120
6118
|
"module": "@ember/template"
|
|
6121
6119
|
},
|
|
6122
6120
|
{
|
|
6123
6121
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6124
|
-
"line":
|
|
6122
|
+
"line": 112,
|
|
6125
6123
|
"class": "Component",
|
|
6126
6124
|
"module": "@ember/template"
|
|
6127
6125
|
},
|
|
6128
6126
|
{
|
|
6129
6127
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6130
|
-
"line":
|
|
6128
|
+
"line": 752,
|
|
6131
6129
|
"description": "Normally, Ember's component model is \"write-only\". The component takes a\nbunch of attributes that it got passed in, and uses them to render its\ntemplate.\n\nOne nice thing about this model is that if you try to set a value to the\nsame thing as last time, Ember (through HTMLBars) will avoid doing any\nwork on the DOM.\n\nThis is not just a performance optimization. If an attribute has not\nchanged, it is important not to clobber the element's \"hidden state\".\nFor example, if you set an input's `value` to the same value as before,\nit will clobber selection state and cursor position. In other words,\nsetting an attribute is not **always** idempotent.\n\nThis method provides a way to read an element's attribute and also\nupdate the last value Ember knows about at the same time. This makes\nsetting an attribute idempotent.\n\nIn particular, what this means is that if you get an `<input>` element's\n`value` attribute and then re-render the template with the same value,\nit will avoid clobbering the cursor and selection position.\nSince most attribute sets are idempotent in the browser, you typically\ncan get away with reading attributes using jQuery, but the most reliable\nway to do so is through this method.",
|
|
6132
6130
|
"itemtype": "method",
|
|
6133
6131
|
"name": "readDOMAttr",
|
|
@@ -6148,7 +6146,7 @@
|
|
|
6148
6146
|
},
|
|
6149
6147
|
{
|
|
6150
6148
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6151
|
-
"line":
|
|
6149
|
+
"line": 803,
|
|
6152
6150
|
"description": "The WAI-ARIA role of the control represented by this view. For example, a\nbutton may have a role of type 'button', or a pane may have a role of\ntype 'alertdialog'. This property is used by assistive software to help\nvisually challenged users navigate rich web applications.\n\nThe full list of valid WAI-ARIA roles is available at:\n[https://www.w3.org/TR/wai-aria/#roles_categorization](https://www.w3.org/TR/wai-aria/#roles_categorization)",
|
|
6153
6151
|
"itemtype": "property",
|
|
6154
6152
|
"name": "ariaRole",
|
|
@@ -6161,7 +6159,7 @@
|
|
|
6161
6159
|
},
|
|
6162
6160
|
{
|
|
6163
6161
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6164
|
-
"line":
|
|
6162
|
+
"line": 818,
|
|
6165
6163
|
"description": "Enables components to take a list of parameters as arguments.\nFor example, a component that takes two parameters with the names\n`name` and `age`:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nlet MyComponent = Component.extend();\n\nMyComponent.reopenClass({\n positionalParams: ['name', 'age']\n});\n\nexport default MyComponent;\n```\n\nIt can then be invoked like this:\n\n```hbs\n{{my-component \"John\" 38}}\n```\n\nThe parameters can be referred to just like named parameters:\n\n```hbs\nName: {{name}}, Age: {{age}}.\n```\n\nUsing a string instead of an array allows for an arbitrary number of\nparameters:\n\n```app/components/my-component.js\nimport Component from '@ember/component';\n\nlet MyComponent = Component.extend();\n\nMyComponent.reopenClass({\n positionalParams: 'names'\n});\n\nexport default MyComponent;\n```\n\nIt can then be invoked like this:\n\n```hbs\n{{my-component \"John\" \"Michael\" \"Scott\"}}\n```\nThe parameters can then be referred to by enumerating over the list:\n\n```hbs\n{{#each names as |name|}}{{name}}{{/each}}\n```",
|
|
6166
6164
|
"static": 1,
|
|
6167
6165
|
"access": "public",
|
|
@@ -6174,7 +6172,7 @@
|
|
|
6174
6172
|
},
|
|
6175
6173
|
{
|
|
6176
6174
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6177
|
-
"line":
|
|
6175
|
+
"line": 879,
|
|
6178
6176
|
"description": "Called when the attributes passed into the component have been updated.\nCalled both during the initial render of a container and during a rerender.\nCan be used in place of an observer; code placed here will be executed\nevery time any attribute updates.",
|
|
6179
6177
|
"itemtype": "method",
|
|
6180
6178
|
"name": "didReceiveAttrs",
|
|
@@ -6186,7 +6184,7 @@
|
|
|
6186
6184
|
},
|
|
6187
6185
|
{
|
|
6188
6186
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6189
|
-
"line":
|
|
6187
|
+
"line": 890,
|
|
6190
6188
|
"description": "Called when the attributes passed into the component have been updated.\nCalled both during the initial render of a container and during a rerender.\nCan be used in place of an observer; code placed here will be executed\nevery time any attribute updates.",
|
|
6191
6189
|
"itemtype": "event",
|
|
6192
6190
|
"name": "didReceiveAttrs",
|
|
@@ -6198,7 +6196,7 @@
|
|
|
6198
6196
|
},
|
|
6199
6197
|
{
|
|
6200
6198
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6201
|
-
"line":
|
|
6199
|
+
"line": 900,
|
|
6202
6200
|
"description": "Called after a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6203
6201
|
"itemtype": "method",
|
|
6204
6202
|
"name": "didRender",
|
|
@@ -6210,7 +6208,7 @@
|
|
|
6210
6208
|
},
|
|
6211
6209
|
{
|
|
6212
6210
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6213
|
-
"line":
|
|
6211
|
+
"line": 909,
|
|
6214
6212
|
"description": "Called after a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6215
6213
|
"itemtype": "event",
|
|
6216
6214
|
"name": "didRender",
|
|
@@ -6222,7 +6220,7 @@
|
|
|
6222
6220
|
},
|
|
6223
6221
|
{
|
|
6224
6222
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6225
|
-
"line":
|
|
6223
|
+
"line": 917,
|
|
6226
6224
|
"description": "Called before a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6227
6225
|
"itemtype": "method",
|
|
6228
6226
|
"name": "willRender",
|
|
@@ -6234,7 +6232,7 @@
|
|
|
6234
6232
|
},
|
|
6235
6233
|
{
|
|
6236
6234
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6237
|
-
"line":
|
|
6235
|
+
"line": 926,
|
|
6238
6236
|
"description": "Called before a component has been rendered, both on initial render and\nin subsequent rerenders.",
|
|
6239
6237
|
"itemtype": "event",
|
|
6240
6238
|
"name": "willRender",
|
|
@@ -6246,7 +6244,7 @@
|
|
|
6246
6244
|
},
|
|
6247
6245
|
{
|
|
6248
6246
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6249
|
-
"line":
|
|
6247
|
+
"line": 934,
|
|
6250
6248
|
"description": "Called when the attributes passed into the component have been changed.\nCalled only during a rerender, not during an initial render.",
|
|
6251
6249
|
"itemtype": "method",
|
|
6252
6250
|
"name": "didUpdateAttrs",
|
|
@@ -6258,7 +6256,7 @@
|
|
|
6258
6256
|
},
|
|
6259
6257
|
{
|
|
6260
6258
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6261
|
-
"line":
|
|
6259
|
+
"line": 943,
|
|
6262
6260
|
"description": "Called when the attributes passed into the component have been changed.\nCalled only during a rerender, not during an initial render.",
|
|
6263
6261
|
"itemtype": "event",
|
|
6264
6262
|
"name": "didUpdateAttrs",
|
|
@@ -6270,7 +6268,7 @@
|
|
|
6270
6268
|
},
|
|
6271
6269
|
{
|
|
6272
6270
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6273
|
-
"line":
|
|
6271
|
+
"line": 951,
|
|
6274
6272
|
"description": "Called when the component is about to update and rerender itself.\nCalled only during a rerender, not during an initial render.",
|
|
6275
6273
|
"itemtype": "method",
|
|
6276
6274
|
"name": "willUpdate",
|
|
@@ -6282,7 +6280,7 @@
|
|
|
6282
6280
|
},
|
|
6283
6281
|
{
|
|
6284
6282
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6285
|
-
"line":
|
|
6283
|
+
"line": 960,
|
|
6286
6284
|
"description": "Called when the component is about to update and rerender itself.\nCalled only during a rerender, not during an initial render.",
|
|
6287
6285
|
"itemtype": "event",
|
|
6288
6286
|
"name": "willUpdate",
|
|
@@ -6294,7 +6292,7 @@
|
|
|
6294
6292
|
},
|
|
6295
6293
|
{
|
|
6296
6294
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6297
|
-
"line":
|
|
6295
|
+
"line": 968,
|
|
6298
6296
|
"description": "Called when the component has updated and rerendered itself.\nCalled only during a rerender, not during an initial render.",
|
|
6299
6297
|
"itemtype": "method",
|
|
6300
6298
|
"name": "didUpdate",
|
|
@@ -6306,7 +6304,7 @@
|
|
|
6306
6304
|
},
|
|
6307
6305
|
{
|
|
6308
6306
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6309
|
-
"line":
|
|
6307
|
+
"line": 977,
|
|
6310
6308
|
"description": "Called when the component has updated and rerendered itself.\nCalled only during a rerender, not during an initial render.",
|
|
6311
6309
|
"itemtype": "event",
|
|
6312
6310
|
"name": "didUpdate",
|
|
@@ -6318,7 +6316,7 @@
|
|
|
6318
6316
|
},
|
|
6319
6317
|
{
|
|
6320
6318
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6321
|
-
"line":
|
|
6319
|
+
"line": 985,
|
|
6322
6320
|
"description": "Layout can be used to wrap content in a component.",
|
|
6323
6321
|
"itemtype": "property",
|
|
6324
6322
|
"name": "layout",
|
|
@@ -6330,7 +6328,7 @@
|
|
|
6330
6328
|
},
|
|
6331
6329
|
{
|
|
6332
6330
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6333
|
-
"line":
|
|
6331
|
+
"line": 992,
|
|
6334
6332
|
"description": "The name of the layout to lookup if no layout is provided.\nBy default `Component` will lookup a template with this name in\n`Ember.TEMPLATES` (a shared global object).",
|
|
6335
6333
|
"itemtype": "property",
|
|
6336
6334
|
"name": "layoutName",
|
|
@@ -6343,7 +6341,7 @@
|
|
|
6343
6341
|
},
|
|
6344
6342
|
{
|
|
6345
6343
|
"file": "packages/@ember/-internals/glimmer/lib/component.ts",
|
|
6346
|
-
"line":
|
|
6344
|
+
"line": 1002,
|
|
6347
6345
|
"description": "The HTML `id` of the component's element in the DOM. You can provide this\nvalue yourself but it must be unique (just as in HTML):\n\n```handlebars\n{{my-component elementId=\"a-really-cool-id\"}}\n```\n\n```handlebars\n<MyComponent @elementId=\"a-really-cool-id\" />\n```\nIf not manually set a default value will be provided by the framework.\nOnce rendered an element's `elementId` is considered immutable and you\nshould never change it. If you need to compute a dynamic value for the\n`elementId`, you should do this when the component or element is being\ninstantiated:\n\n```javascript\nexport default Component.extend({\n init() {\n this._super(...arguments);\n\n var index = this.get('index');\n this.set('elementId', `component-id${index}`);\n }\n});\n```",
|
|
6348
6346
|
"itemtype": "property",
|
|
6349
6347
|
"name": "elementId",
|
|
@@ -6367,19 +6365,7 @@
|
|
|
6367
6365
|
},
|
|
6368
6366
|
{
|
|
6369
6367
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6370
|
-
"line":
|
|
6371
|
-
"description": "On a class-based helper, it may be useful to force a recomputation of that\nhelpers value. This is akin to `rerender` on a component.\n\nFor example, this component will rerender when the `currentUser` on a\nsession service changes:\n\n```app/helpers/current-user-email.js\nimport Helper from '@ember/component/helper'\nimport { service } from '@ember/service'\nimport { observer } from '@ember/object'\n\nexport default Helper.extend({\n session: service(),\n\n onNewUser: observer('session.currentUser', function() {\n this.recompute();\n }),\n\n compute() {\n return this.get('session.currentUser.email');\n }\n});\n```",
|
|
6372
|
-
"itemtype": "method",
|
|
6373
|
-
"name": "recompute",
|
|
6374
|
-
"access": "public",
|
|
6375
|
-
"tagname": "",
|
|
6376
|
-
"since": "1.13.0",
|
|
6377
|
-
"class": "Helper",
|
|
6378
|
-
"module": "@ember/component"
|
|
6379
|
-
},
|
|
6380
|
-
{
|
|
6381
|
-
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6382
|
-
"line": 118,
|
|
6368
|
+
"line": 83,
|
|
6383
6369
|
"description": "Override this function when writing a class-based helper.",
|
|
6384
6370
|
"itemtype": "method",
|
|
6385
6371
|
"name": "compute",
|
|
@@ -6403,7 +6389,19 @@
|
|
|
6403
6389
|
},
|
|
6404
6390
|
{
|
|
6405
6391
|
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6406
|
-
"line":
|
|
6392
|
+
"line": 103,
|
|
6393
|
+
"description": "On a class-based helper, it may be useful to force a recomputation of that\nhelpers value. This is akin to `rerender` on a component.\n\nFor example, this component will rerender when the `currentUser` on a\nsession service changes:\n\n```app/helpers/current-user-email.js\nimport Helper from '@ember/component/helper'\nimport { service } from '@ember/service'\nimport { observer } from '@ember/object'\n\nexport default Helper.extend({\n session: service(),\n\n onNewUser: observer('session.currentUser', function() {\n this.recompute();\n }),\n\n compute() {\n return this.get('session.currentUser.email');\n }\n});\n```",
|
|
6394
|
+
"itemtype": "method",
|
|
6395
|
+
"name": "recompute",
|
|
6396
|
+
"access": "public",
|
|
6397
|
+
"tagname": "",
|
|
6398
|
+
"since": "1.13.0",
|
|
6399
|
+
"class": "Helper",
|
|
6400
|
+
"module": "@ember/component"
|
|
6401
|
+
},
|
|
6402
|
+
{
|
|
6403
|
+
"file": "packages/@ember/-internals/glimmer/lib/helper.ts",
|
|
6404
|
+
"line": 239,
|
|
6407
6405
|
"description": "In many cases it is not necessary to use the full `Helper` class.\nThe `helper` method create pure-function helpers without instances.\nFor example:\n\n```app/helpers/format-currency.js\nimport { helper } from '@ember/component/helper';\n\nexport default helper(function([cents], {currency}) {\n return `${currency}${cents * 0.01}`;\n});\n```",
|
|
6408
6406
|
"static": 1,
|
|
6409
6407
|
"params": [
|
|
@@ -7827,7 +7825,25 @@
|
|
|
7827
7825
|
},
|
|
7828
7826
|
{
|
|
7829
7827
|
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7830
|
-
"line":
|
|
7828
|
+
"line": 36,
|
|
7829
|
+
"class": "@ember/application",
|
|
7830
|
+
"module": "@ember/application"
|
|
7831
|
+
},
|
|
7832
|
+
{
|
|
7833
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7834
|
+
"line": 38,
|
|
7835
|
+
"class": "@ember/application",
|
|
7836
|
+
"module": "@ember/application"
|
|
7837
|
+
},
|
|
7838
|
+
{
|
|
7839
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7840
|
+
"line": 40,
|
|
7841
|
+
"class": "@ember/application",
|
|
7842
|
+
"module": "@ember/application"
|
|
7843
|
+
},
|
|
7844
|
+
{
|
|
7845
|
+
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7846
|
+
"line": 44,
|
|
7831
7847
|
"description": "Framework objects in an Ember application (components, services, routes, etc.)\nare created via a factory and dependency injection system. Each of these\nobjects is the responsibility of an \"owner\", which handled its\ninstantiation and manages its lifetime.\n\n`getOwner` fetches the owner object responsible for an instance. This can\nbe used to lookup or resolve other class instances, or register new factories\ninto the owner.\n\nFor example, this component dynamically looks up a service based on the\n`audioType` passed as an argument:\n\n```app/components/play-audio.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { getOwner } from '@ember/application';\n\n// Usage:\n//\n// <PlayAudio @audioType={{@model.audioType}} @audioFile={{@model.file}}/>\n//\nexport default class extends Component {\n get audioService() {\n let owner = getOwner(this);\n return owner.lookup(`service:${this.args.audioType}`);\n }\n\n @action\n onPlay() {\n let player = this.audioService;\n player.play(this.args.audioFile);\n }\n}\n```",
|
|
7832
7848
|
"itemtype": "method",
|
|
7833
7849
|
"name": "getOwner",
|
|
@@ -7851,7 +7867,7 @@
|
|
|
7851
7867
|
},
|
|
7852
7868
|
{
|
|
7853
7869
|
"file": "packages/@ember/-internals/owner/index.ts",
|
|
7854
|
-
"line":
|
|
7870
|
+
"line": 92,
|
|
7855
7871
|
"description": "`setOwner` forces a new owner on a given object instance. This is primarily\nuseful in some testing cases.",
|
|
7856
7872
|
"itemtype": "method",
|
|
7857
7873
|
"name": "setOwner",
|
|
@@ -8083,7 +8099,7 @@
|
|
|
8083
8099
|
},
|
|
8084
8100
|
{
|
|
8085
8101
|
"file": "packages/@ember/-internals/routing/lib/location/auto_location.ts",
|
|
8086
|
-
"line":
|
|
8102
|
+
"line": 300,
|
|
8087
8103
|
"access": "private",
|
|
8088
8104
|
"tagname": "Returns the current path as it should appear for HistoryLocation supported\nbrowsers. This may very well differ from the real current path (e.g. if it\nstarts off as a hashed URL)",
|
|
8089
8105
|
"class": "AutoLocation",
|
|
@@ -8091,7 +8107,7 @@
|
|
|
8091
8107
|
},
|
|
8092
8108
|
{
|
|
8093
8109
|
"file": "packages/@ember/-internals/routing/lib/location/auto_location.ts",
|
|
8094
|
-
"line":
|
|
8110
|
+
"line": 346,
|
|
8095
8111
|
"access": "private",
|
|
8096
8112
|
"tagname": "Returns the current path as it should appear for HashLocation supported\nbrowsers. This may very well differ from the real current path.",
|
|
8097
8113
|
"itemtype": "method",
|
|
@@ -8513,7 +8529,7 @@
|
|
|
8513
8529
|
},
|
|
8514
8530
|
{
|
|
8515
8531
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8516
|
-
"line":
|
|
8532
|
+
"line": 74,
|
|
8517
8533
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nSee [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\n\nCalling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nIn the following example we use the Router service to navigate to a route with a\nspecific model from a Component in the first action, and in the second we trigger\na query-params only transition.\n\n```app/components/example.js\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n @action\n goToComments(post) {\n this.router.transitionTo('comments', post);\n }\n\n @action\n fetchMoreComments(latestComment) {\n this.router.transitionTo({\n queryParams: { commentsAfter: latestComment }\n });\n }\n}\n```",
|
|
8518
8534
|
"itemtype": "method",
|
|
8519
8535
|
"name": "transitionTo",
|
|
@@ -8548,7 +8564,7 @@
|
|
|
8548
8564
|
},
|
|
8549
8565
|
{
|
|
8550
8566
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8551
|
-
"line":
|
|
8567
|
+
"line": 143,
|
|
8552
8568
|
"description": "Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\nit replaces the entry for the current route.\nWhen the user clicks the \"back\" button in the browser, there will be fewer steps.\nThis is most commonly used to manage redirects in a way that does not cause confusing additions\nto the user's browsing history.\n\nSee [replaceWith](/ember/release/classes/Route/methods/replaceWith?anchor=replaceWith) for more info.\n\nCalling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\nThis behavior is different from calling `replaceWith` on a route.\nSee the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n\nUsage example:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\n\nexport default class extends Route {\n beforeModel() {\n if (!authorized()){\n this.replaceWith('unauthorized');\n }\n }\n});\n```",
|
|
8553
8569
|
"itemtype": "method",
|
|
8554
8570
|
"name": "replaceWith",
|
|
@@ -8581,7 +8597,7 @@
|
|
|
8581
8597
|
},
|
|
8582
8598
|
{
|
|
8583
8599
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8584
|
-
"line":
|
|
8600
|
+
"line": 184,
|
|
8585
8601
|
"description": "Generate a URL based on the supplied route name and optionally a model. The\nURL is returned as a string that can be used for any purpose.\n\nIn this example, the URL for the `author.books` route for a given author\nis copied to the clipboard.\n\n```app/templates/application.hbs\n<CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n```\n\n```app/components/copy-link.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.args.author);\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books\n }\n }\n}\n```\n\nJust like with `transitionTo` and `replaceWith`, `urlFor` can also handle\nquery parameters.\n\n```app/templates/application.hbs\n<CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n```\n\n```app/components/copy-link.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\nimport { action } from '@ember/object';\n\nexport default class CopyLinkComponent extends Component {\n @service router;\n @service clipboard;\n\n @action\n copyOnlyEmberBooksURL() {\n if (this.author) {\n const url = this.router.urlFor('author.books', this.author, {\n queryParams: { filter: 'emberjs' }\n });\n this.clipboard.set(url);\n // Clipboard now has /author/tomster/books?filter=emberjs\n }\n }\n}\n```",
|
|
8586
8602
|
"itemtype": "method",
|
|
8587
8603
|
"name": "urlFor",
|
|
@@ -8614,7 +8630,7 @@
|
|
|
8614
8630
|
},
|
|
8615
8631
|
{
|
|
8616
8632
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8617
|
-
"line":
|
|
8633
|
+
"line": 258,
|
|
8618
8634
|
"description": "Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\nSee [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n[queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n\nIn the following example, `isActive` will return `true` if the current route is `/posts`.\n\n```app/components/posts.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments() {\n return this.router.isActive('posts');\n }\n});\n```\n\nThe next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\nassuming the post has an id of 1:\n\n```app/components/posts.js\nimport Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n\n displayComments(post) {\n return this.router.isActive('posts', post.id);\n }\n});\n```\n\nWhere `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\nIf `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.",
|
|
8619
8635
|
"itemtype": "method",
|
|
8620
8636
|
"name": "isActive",
|
|
@@ -8647,7 +8663,7 @@
|
|
|
8647
8663
|
},
|
|
8648
8664
|
{
|
|
8649
8665
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8650
|
-
"line":
|
|
8666
|
+
"line": 352,
|
|
8651
8667
|
"description": "Takes a string URL and returns a `RouteInfo` for the leafmost route represented\nby the URL. Returns `null` if the URL is not recognized. This method expects to\nreceive the actual URL as seen by the browser including the app's `rootURL`.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nIn the following example `recognize` is used to verify if a path belongs to our\napplication before transitioning to it.\n\n```\nimport Component from '@ember/component';\nimport { service } from '@ember/service';\n\nexport default class extends Component {\n @service router;\n path = '/';\n\n click() {\n if (this.router.recognize(this.path)) {\n this.router.transitionTo(this.path);\n }\n }\n}\n```",
|
|
8652
8668
|
"itemtype": "method",
|
|
8653
8669
|
"name": "recognize",
|
|
@@ -8665,7 +8681,7 @@
|
|
|
8665
8681
|
},
|
|
8666
8682
|
{
|
|
8667
8683
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8668
|
-
"line":
|
|
8684
|
+
"line": 392,
|
|
8669
8685
|
"description": "Takes a string URL and returns a promise that resolves to a\n`RouteInfoWithAttributes` for the leafmost route represented by the URL.\nThe promise rejects if the URL is not recognized or an unhandled exception\nis encountered. This method expects to receive the actual URL as seen by\nthe browser including the app's `rootURL`.",
|
|
8670
8686
|
"itemtype": "method",
|
|
8671
8687
|
"name": "recognizeAndLoad",
|
|
@@ -8683,7 +8699,7 @@
|
|
|
8683
8699
|
},
|
|
8684
8700
|
{
|
|
8685
8701
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8686
|
-
"line":
|
|
8702
|
+
"line": 413,
|
|
8687
8703
|
"description": "The `routeWillChange` event is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeWillChange', (transition) => {\n if (!transition.to.find(route => route.name === this.routeName)) {\n alert(\"Please save or cancel your changes.\");\n transition.abort();\n }\n })\n }\n}\n```\n\nThe `routeWillChange` event fires whenever a new route is chosen as the desired target of a transition. This includes `transitionTo`, `replaceWith`, all redirection for any reason including error handling, and abort. Aborting implies changing the desired target back to where you already were. Once a transition has completed, `routeDidChange` fires.",
|
|
8688
8704
|
"itemtype": "event",
|
|
8689
8705
|
"name": "routeWillChange",
|
|
@@ -8701,7 +8717,7 @@
|
|
|
8701
8717
|
},
|
|
8702
8718
|
{
|
|
8703
8719
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8704
|
-
"line":
|
|
8720
|
+
"line": 449,
|
|
8705
8721
|
"description": "The `routeDidChange` event only fires once a transition has settled.\nThis includes aborts and error substates. Like the `routeWillChange` event\nit receives a Transition as the sole argument.\n\nA good example is sending some analytics when the route has transitioned:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing';\nimport { service } from '@ember/service';\n\nexport default class extends Route {\n @service router;\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeDidChange', (transition) => {\n ga.send('pageView', {\n current: transition.to.name,\n from: transition.from.name\n });\n })\n }\n}\n```\n\n`routeDidChange` will be called after any `Route`'s\n[didTransition](/ember/release/classes/Route/events/didTransition?anchor=didTransition)\naction has been fired.\nThe updates of properties\n[currentURL](/ember/release/classes/RouterService/properties/currentURL?anchor=currentURL),\n[currentRouteName](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRouteName)\nand\n[currentRoute](/ember/release/classes/RouterService/properties/currentURL?anchor=currentRoute)\nare completed at the time `routeDidChange` is called.",
|
|
8706
8722
|
"itemtype": "event",
|
|
8707
8723
|
"name": "routeDidChange",
|
|
@@ -8719,7 +8735,7 @@
|
|
|
8719
8735
|
},
|
|
8720
8736
|
{
|
|
8721
8737
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8722
|
-
"line":
|
|
8738
|
+
"line": 494,
|
|
8723
8739
|
"description": "Refreshes all currently active routes, doing a full transition.\nIf a route name is provided and refers to a currently active route,\nit will refresh only that route and its descendents.\nReturns a promise that will be resolved once the refresh is complete.\nAll resetController, beforeModel, model, afterModel, redirect, and setupController\nhooks will be called again. You will get new data from the model hook.",
|
|
8724
8740
|
"itemtype": "method",
|
|
8725
8741
|
"name": "refresh",
|
|
@@ -8744,7 +8760,7 @@
|
|
|
8744
8760
|
},
|
|
8745
8761
|
{
|
|
8746
8762
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8747
|
-
"line":
|
|
8763
|
+
"line": 529,
|
|
8748
8764
|
"description": "Name of the current route.\n\nThis property represents the logical name of the route,\nwhich is comma separated.\nFor the following router:\n\n```app/router.js\nRouter.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n});\n```\n\nIt will return:\n\n* `index` when you visit `/`\n* `about` when you visit `/about`\n* `blog.index` when you visit `/blog`\n* `blog.post` when you visit `/blog/some-post-id`",
|
|
8749
8765
|
"itemtype": "property",
|
|
8750
8766
|
"name": "currentRouteName",
|
|
@@ -8756,7 +8772,7 @@
|
|
|
8756
8772
|
},
|
|
8757
8773
|
{
|
|
8758
8774
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8759
|
-
"line":
|
|
8775
|
+
"line": 558,
|
|
8760
8776
|
"description": "Current URL for the application.\n\n This property represents the URL path for this route.\n For the following router:\n\n```app/router.js\nRouter.map(function() {\n this.route('about');\n this.route('blog', function () {\n this.route('post', { path: ':post_id' });\n });\n});\n```\n\nIt will return:\n\n* `/` when you visit `/`\n* `/about` when you visit `/about`\n* `/blog` when you visit `/blog`\n* `/blog/some-post-id` when you visit `/blog/some-post-id`",
|
|
8761
8777
|
"itemtype": "property",
|
|
8762
8778
|
"name": "currentURL",
|
|
@@ -8768,7 +8784,7 @@
|
|
|
8768
8784
|
},
|
|
8769
8785
|
{
|
|
8770
8786
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8771
|
-
"line":
|
|
8787
|
+
"line": 586,
|
|
8772
8788
|
"description": "The `location` property returns what implementation of the `location` API\nyour application is using, which determines what type of URL is being used.\n\nSee [Location](/ember/release/classes/Location) for more information.\n\nTo force a particular `location` API implementation to be used in your\napplication you can set a location type on your `config/environment`.\nFor example, to set the `history` type:\n\n```config/environment.js\n'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/',\n locationType: 'history',\n ...\n }\n}\n```\n\nThe following location types are available by default:\n`auto`, `hash`, `history`, `none`.\n\nSee [HashLocation](/ember/release/classes/HashLocation).\nSee [HistoryLocation](/ember/release/classes/HistoryLocation).\nSee [NoneLocation](/ember/release/classes/NoneLocation).\nSee [AutoLocation](/ember/release/classes/AutoLocation).",
|
|
8773
8789
|
"itemtype": "property",
|
|
8774
8790
|
"name": "location",
|
|
@@ -8783,7 +8799,7 @@
|
|
|
8783
8799
|
},
|
|
8784
8800
|
{
|
|
8785
8801
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8786
|
-
"line":
|
|
8802
|
+
"line": 625,
|
|
8787
8803
|
"description": "The `rootURL` property represents the URL of the root of\nthe application, '/' by default.\nThis prefix is assumed on all routes defined on this app.\n\nIf you change the `rootURL` in your environment configuration\nlike so:\n\n```config/environment.js\n'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'router-service',\n environment,\n rootURL: '/my-root',\n …\n }\n]\n```\n\nThis property will return `/my-root`.",
|
|
8788
8804
|
"itemtype": "property",
|
|
8789
8805
|
"name": "rootURL",
|
|
@@ -8795,7 +8811,7 @@
|
|
|
8795
8811
|
},
|
|
8796
8812
|
{
|
|
8797
8813
|
"file": "packages/@ember/-internals/routing/lib/services/router.ts",
|
|
8798
|
-
"line":
|
|
8814
|
+
"line": 654,
|
|
8799
8815
|
"description": "The `currentRoute` property contains metadata about the current leaf route.\nIt returns a `RouteInfo` object that has information like the route name,\nparams, query params and more.\n\nSee [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n\nThis property is guaranteed to change whenever a route transition\nhappens (even when that transition only changes parameters\nand doesn't change the active route).\n\nUsage example:\n```app/components/header.js\n import Component from '@glimmer/component';\n import { service } from '@ember/service';\n import { notEmpty } from '@ember/object/computed';\n\n export default class extends Component {\n @service router;\n\n @notEmpty('router.currentRoute.child') isChildRoute;\n });\n```",
|
|
8800
8816
|
"itemtype": "property",
|
|
8801
8817
|
"name": "currentRoute",
|
|
@@ -9199,7 +9215,7 @@
|
|
|
9199
9215
|
},
|
|
9200
9216
|
{
|
|
9201
9217
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9202
|
-
"line":
|
|
9218
|
+
"line": 346,
|
|
9203
9219
|
"access": "private",
|
|
9204
9220
|
"tagname": "",
|
|
9205
9221
|
"itemtype": "method",
|
|
@@ -9209,7 +9225,7 @@
|
|
|
9209
9225
|
},
|
|
9210
9226
|
{
|
|
9211
9227
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9212
|
-
"line":
|
|
9228
|
+
"line": 378,
|
|
9213
9229
|
"access": "private",
|
|
9214
9230
|
"tagname": "",
|
|
9215
9231
|
"itemtype": "property",
|
|
@@ -9219,7 +9235,7 @@
|
|
|
9219
9235
|
},
|
|
9220
9236
|
{
|
|
9221
9237
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9222
|
-
"line":
|
|
9238
|
+
"line": 387,
|
|
9223
9239
|
"access": "private",
|
|
9224
9240
|
"tagname": "",
|
|
9225
9241
|
"itemtype": "method",
|
|
@@ -9229,7 +9245,7 @@
|
|
|
9229
9245
|
},
|
|
9230
9246
|
{
|
|
9231
9247
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9232
|
-
"line":
|
|
9248
|
+
"line": 395,
|
|
9233
9249
|
"description": "Returns a hash containing the parameters of an ancestor route.\n\nYou may notice that `this.paramsFor` sometimes works when referring to a\nchild route, but this behavior should not be relied upon as only ancestor\nroutes are certain to be loaded in time.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('member', { path: ':name' }, function() {\n this.route('interest', { path: ':interest' });\n });\n});\n```\n\n```app/routes/member.js\nimport Route from '@ember/routing/route';\n\nexport default class MemberRoute extends Route {\n queryParams = {\n memberQp: { refreshModel: true }\n }\n}\n```\n\n```app/routes/member/interest.js\nimport Route from '@ember/routing/route';\n\nexport default class MemberInterestRoute extends Route {\n queryParams = {\n interestQp: { refreshModel: true }\n }\n\n model() {\n return this.paramsFor('member');\n }\n}\n```\n\nIf we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\nthe `member.interest` route is a hash with:\n\n* `name`: `turing`\n* `memberQp`: `member`",
|
|
9234
9250
|
"itemtype": "method",
|
|
9235
9251
|
"name": "paramsFor",
|
|
@@ -9252,7 +9268,7 @@
|
|
|
9252
9268
|
},
|
|
9253
9269
|
{
|
|
9254
9270
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9255
|
-
"line":
|
|
9271
|
+
"line": 476,
|
|
9256
9272
|
"description": "Serializes the query parameter key",
|
|
9257
9273
|
"itemtype": "method",
|
|
9258
9274
|
"name": "serializeQueryParamKey",
|
|
@@ -9270,7 +9286,7 @@
|
|
|
9270
9286
|
},
|
|
9271
9287
|
{
|
|
9272
9288
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9273
|
-
"line":
|
|
9289
|
+
"line": 487,
|
|
9274
9290
|
"description": "Serializes value of the query parameter based on defaultValueType",
|
|
9275
9291
|
"itemtype": "method",
|
|
9276
9292
|
"name": "serializeQueryParam",
|
|
@@ -9298,7 +9314,7 @@
|
|
|
9298
9314
|
},
|
|
9299
9315
|
{
|
|
9300
9316
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9301
|
-
"line":
|
|
9317
|
+
"line": 503,
|
|
9302
9318
|
"description": "Deserializes value of the query parameter based on defaultValueType",
|
|
9303
9319
|
"itemtype": "method",
|
|
9304
9320
|
"name": "deserializeQueryParam",
|
|
@@ -9326,7 +9342,7 @@
|
|
|
9326
9342
|
},
|
|
9327
9343
|
{
|
|
9328
9344
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9329
|
-
"line":
|
|
9345
|
+
"line": 519,
|
|
9330
9346
|
"access": "private",
|
|
9331
9347
|
"tagname": "",
|
|
9332
9348
|
"itemtype": "property",
|
|
@@ -9336,7 +9352,7 @@
|
|
|
9336
9352
|
},
|
|
9337
9353
|
{
|
|
9338
9354
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9339
|
-
"line":
|
|
9355
|
+
"line": 535,
|
|
9340
9356
|
"description": "A hook you can use to reset controller values either when the model\nchanges or the route is exiting.\n\n```app/routes/articles.js\nimport Route from '@ember/routing/route';\n\nexport default class ArticlesRoute extends Route {\n resetController(controller, isExiting, transition) {\n if (isExiting && transition.targetName !== 'error') {\n controller.set('page', 1);\n }\n }\n}\n```",
|
|
9341
9357
|
"itemtype": "method",
|
|
9342
9358
|
"name": "resetController",
|
|
@@ -9365,7 +9381,7 @@
|
|
|
9365
9381
|
},
|
|
9366
9382
|
{
|
|
9367
9383
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9368
|
-
"line":
|
|
9384
|
+
"line": 562,
|
|
9369
9385
|
"access": "private",
|
|
9370
9386
|
"tagname": "",
|
|
9371
9387
|
"itemtype": "method",
|
|
@@ -9375,7 +9391,7 @@
|
|
|
9375
9391
|
},
|
|
9376
9392
|
{
|
|
9377
9393
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9378
|
-
"line":
|
|
9394
|
+
"line": 573,
|
|
9379
9395
|
"access": "private",
|
|
9380
9396
|
"tagname": "",
|
|
9381
9397
|
"itemtype": "method",
|
|
@@ -9386,7 +9402,7 @@
|
|
|
9386
9402
|
},
|
|
9387
9403
|
{
|
|
9388
9404
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9389
|
-
"line":
|
|
9405
|
+
"line": 587,
|
|
9390
9406
|
"access": "private",
|
|
9391
9407
|
"tagname": "",
|
|
9392
9408
|
"itemtype": "method",
|
|
@@ -9396,7 +9412,7 @@
|
|
|
9396
9412
|
},
|
|
9397
9413
|
{
|
|
9398
9414
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9399
|
-
"line":
|
|
9415
|
+
"line": 598,
|
|
9400
9416
|
"description": "The `willTransition` action is fired at the beginning of any\nattempted transition with a `Transition` object as the sole\nargument. This action can be used for aborting, redirecting,\nor decorating the transition from the currently active routes.\n\nA good example is preventing navigation when a form is\nhalf-filled out:\n\n```app/routes/contact-form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ContactFormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData')) {\n this.controller.displayNavigationConfirm();\n transition.abort();\n }\n }\n}\n```\n\nYou can also redirect elsewhere by calling\n`this.transitionTo('elsewhere')` from within `willTransition`.\nNote that `willTransition` will not be fired for the\nredirecting `transitionTo`, since `willTransition` doesn't\nfire when there is already a transition underway. If you want\nsubsequent `willTransition` actions to fire for the redirecting\ntransition, you must first explicitly call\n`transition.abort()`.\n\nTo allow the `willTransition` event to continue bubbling to the parent\nroute, use `return true;`. When the `willTransition` method has a\nreturn value of `true` then the parent route's `willTransition` method\nwill be fired, enabling \"bubbling\" behavior for the event.",
|
|
9401
9417
|
"itemtype": "event",
|
|
9402
9418
|
"name": "willTransition",
|
|
@@ -9415,7 +9431,7 @@
|
|
|
9415
9431
|
},
|
|
9416
9432
|
{
|
|
9417
9433
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9418
|
-
"line":
|
|
9434
|
+
"line": 642,
|
|
9419
9435
|
"description": "The `didTransition` action is fired after a transition has\nsuccessfully been completed. This occurs after the normal model\nhooks (`beforeModel`, `model`, `afterModel`, `setupController`)\nhave resolved. The `didTransition` action has no arguments,\nhowever, it can be useful for tracking page views or resetting\nstate on the controller.\n\n```app/routes/login.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class LoginRoute extends Route {\n @action\n didTransition() {\n this.controller.get('errors.base').clear();\n return true; // Bubble the didTransition event\n }\n}\n```",
|
|
9420
9436
|
"itemtype": "event",
|
|
9421
9437
|
"name": "didTransition",
|
|
@@ -9427,7 +9443,7 @@
|
|
|
9427
9443
|
},
|
|
9428
9444
|
{
|
|
9429
9445
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9430
|
-
"line":
|
|
9446
|
+
"line": 668,
|
|
9431
9447
|
"description": "The `loading` action is fired on the route when a route's `model`\nhook returns a promise that is not already resolved. The current\n`Transition` object is the first parameter and the route that\ntriggered the loading event is the second parameter.\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n loading(transition, route) {\n let controller = this.controllerFor('foo');\n\n // The controller may not be instantiated when initially loading\n if (controller) {\n controller.currentlyLoading = true;\n\n transition.finally(function() {\n controller.currentlyLoading = false;\n });\n }\n }\n}\n```",
|
|
9432
9448
|
"itemtype": "event",
|
|
9433
9449
|
"name": "loading",
|
|
@@ -9451,7 +9467,7 @@
|
|
|
9451
9467
|
},
|
|
9452
9468
|
{
|
|
9453
9469
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9454
|
-
"line":
|
|
9470
|
+
"line": 702,
|
|
9455
9471
|
"description": "When attempting to transition into a route, any of the hooks\nmay return a promise that rejects, at which point an `error`\naction will be fired on the partially-entered routes, allowing\nfor per-route error handling logic, or shared error handling\nlogic defined on a parent route.\n\nHere is an example of an error handler that will be invoked\nfor rejected promises from the various hooks on the route,\nas well as any unhandled errors from child routes:\n\n```app/routes/admin.js\nimport { reject } from 'rsvp';\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class AdminRoute extends Route {\n beforeModel() {\n return reject('bad things!');\n }\n\n @action\n error(error, transition) {\n // Assuming we got here due to the error in `beforeModel`,\n // we can expect that error === \"bad things!\",\n // but a promise model rejecting would also\n // call this hook, as would any errors encountered\n // in `afterModel`.\n\n // The `error` hook is also provided the failed\n // `transition`, which can be stored and later\n // `.retry()`d if desired.\n\n this.transitionTo('login');\n }\n}\n```\n\n`error` actions that bubble up all the way to `ApplicationRoute`\nwill fire a default error handler that logs the error. You can\nspecify your own global default error handler by overriding the\n`error` handler on `ApplicationRoute`:\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n error(error, transition) {\n this.controllerFor('banner').displayError(error.message);\n }\n}\n```",
|
|
9456
9472
|
"itemtype": "event",
|
|
9457
9473
|
"name": "error",
|
|
@@ -9475,7 +9491,7 @@
|
|
|
9475
9491
|
},
|
|
9476
9492
|
{
|
|
9477
9493
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9478
|
-
"line":
|
|
9494
|
+
"line": 763,
|
|
9479
9495
|
"description": "This event is triggered when the router enters the route. It is\nnot executed when the model for the route changes.\n\n```app/routes/application.js\nimport { on } from '@ember/object/evented';\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n collectAnalytics: on('activate', function(){\n collectAnalytics();\n })\n});\n```",
|
|
9480
9496
|
"itemtype": "event",
|
|
9481
9497
|
"name": "activate",
|
|
@@ -9487,7 +9503,7 @@
|
|
|
9487
9503
|
},
|
|
9488
9504
|
{
|
|
9489
9505
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9490
|
-
"line":
|
|
9506
|
+
"line": 783,
|
|
9491
9507
|
"description": "This event is triggered when the router completely exits this\nroute. It is not executed when the model for the route changes.\n\n```app/routes/index.js\nimport { on } from '@ember/object/evented';\nimport Route from '@ember/routing/route';\n\nexport default Route.extend({\n trackPageLeaveAnalytics: on('deactivate', function(){\n trackPageLeaveAnalytics();\n })\n});\n```",
|
|
9492
9508
|
"itemtype": "event",
|
|
9493
9509
|
"name": "deactivate",
|
|
@@ -9499,7 +9515,7 @@
|
|
|
9499
9515
|
},
|
|
9500
9516
|
{
|
|
9501
9517
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9502
|
-
"line":
|
|
9518
|
+
"line": 803,
|
|
9503
9519
|
"description": "This hook is executed when the router completely exits this route. It is\nnot executed when the model for the route changes.",
|
|
9504
9520
|
"itemtype": "method",
|
|
9505
9521
|
"name": "deactivate",
|
|
@@ -9518,7 +9534,7 @@
|
|
|
9518
9534
|
},
|
|
9519
9535
|
{
|
|
9520
9536
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9521
|
-
"line":
|
|
9537
|
+
"line": 814,
|
|
9522
9538
|
"description": "This hook is executed when the router enters the route. It is not executed\nwhen the model for the route changes.",
|
|
9523
9539
|
"itemtype": "method",
|
|
9524
9540
|
"name": "activate",
|
|
@@ -9537,7 +9553,7 @@
|
|
|
9537
9553
|
},
|
|
9538
9554
|
{
|
|
9539
9555
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9540
|
-
"line":
|
|
9556
|
+
"line": 825,
|
|
9541
9557
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\n```javascript\nthis.transitionTo('blogPosts');\nthis.transitionTo('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\nthis.transitionTo('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\nthis.transitionTo('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nroute tree.\n\n```app/routes.js\n// ...\n\nRouter.map(function() {\n this.route('blogPost', { path:':blogPostId' }, function() {\n this.route('blogComment', { path: ':blogCommentId' });\n });\n});\n\nexport default Router;\n```\n\n```javascript\nthis.transitionTo('blogComment', aPost, aComment);\nthis.transitionTo('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`).\n\n```javascript\nthis.transitionTo('/');\nthis.transitionTo('/blog/post/1/comment/13');\nthis.transitionTo('/blog/posts?sort=title');\n```\n\nAn options hash with a `queryParams` property may be provided as\nthe final argument to add query parameters to the destination URL.\n\n```javascript\nthis.transitionTo('blogPost', 1, {\n queryParams: { showComments: 'true' }\n});\n\n// if you just want to transition the query parameters without changing the route\nthis.transitionTo({ queryParams: { sort: 'date' } });\n```\n\nSee also [replaceWith](#method_replaceWith).\n\nSimple Transition Example\n\n```app/routes.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n this.route('secret');\n this.route('fourOhFour', { path: '*:' });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n moveToSecret(context) {\n if (authorized()) {\n this.transitionTo('secret', context);\n } else {\n this.transitionTo('fourOhFour');\n }\n }\n}\n```\n\nTransition to a nested route\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('articles', { path: '/articles' }, function() {\n this.route('new');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n transitionToNewArticle() {\n this.transitionTo('articles.new');\n }\n}\n```\n\nMultiple Models Example\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n\n this.route('breakfast', { path: ':breakfastId' }, function() {\n this.route('cereal', { path: ':cerealId' });\n });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n moveToChocolateCereal() {\n let cereal = { cerealId: 'ChocolateYumminess' };\n let breakfast = { breakfastId: 'CerealAndMilk' };\n\n this.transitionTo('breakfast.cereal', breakfast, cereal);\n }\n}\n```\n\nNested Route with Query String Example\n\n```app/routes.js\n// ...\n\nRouter.map(function() {\n this.route('fruits', function() {\n this.route('apples');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\n\nexport default class IndexRoute extends Route {\n @action\n transitionToApples() {\n this.transitionTo('fruits.apples', { queryParams: { color: 'red' } });\n }\n}\n```",
|
|
9542
9558
|
"itemtype": "method",
|
|
9543
9559
|
"name": "transitionTo",
|
|
@@ -9575,7 +9591,7 @@
|
|
|
9575
9591
|
},
|
|
9576
9592
|
{
|
|
9577
9593
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9578
|
-
"line":
|
|
9594
|
+
"line": 1023,
|
|
9579
9595
|
"description": "Perform a synchronous transition into another route without attempting\nto resolve promises, update the URL, or abort any currently active\nasynchronous transitions (i.e. regular transitions caused by\n`transitionTo` or URL changes).\n\nThis method is handy for performing intermediate transitions on the\nway to a final destination route, and is called internally by the\ndefault implementations of the `error` and `loading` handlers.",
|
|
9580
9596
|
"itemtype": "method",
|
|
9581
9597
|
"name": "intermediateTransitionTo",
|
|
@@ -9599,7 +9615,7 @@
|
|
|
9599
9615
|
},
|
|
9600
9616
|
{
|
|
9601
9617
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9602
|
-
"line":
|
|
9618
|
+
"line": 1045,
|
|
9603
9619
|
"description": "Refresh the model on this route and any child routes, firing the\n`beforeModel`, `model`, and `afterModel` hooks in a similar fashion\nto how routes are entered when transitioning in from other route.\nThe current route params (e.g. `article_id`) will be passed in\nto the respective model hooks, and if a different model is returned,\n`setupController` and associated route hooks will re-fire as well.\n\nAn example usage of this method is re-querying the server for the\nlatest information using the same parameters as when the route\nwas first entered.\n\nNote that this will cause `model` hooks to fire even on routes\nthat were provided a model object when the route was initially\nentered.",
|
|
9604
9620
|
"itemtype": "method",
|
|
9605
9621
|
"name": "refresh",
|
|
@@ -9615,7 +9631,7 @@
|
|
|
9615
9631
|
},
|
|
9616
9632
|
{
|
|
9617
9633
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9618
|
-
"line":
|
|
9634
|
+
"line": 1071,
|
|
9619
9635
|
"description": "Transition into another route while replacing the current URL, if possible.\nThis will replace the current history entry instead of adding a new one.\nBeside that, it is identical to `transitionTo` in all other respects. See\n'transitionTo' for additional information regarding multiple models.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n this.route('secret');\n});\n\nexport default Router;\n```\n\n```app/routes/secret.js\nimport Route from '@ember/routing/route';\n\nexport default class SecretRoute Route {\n afterModel() {\n if (!authorized()){\n this.replaceWith('index');\n }\n }\n}\n```",
|
|
9620
9636
|
"itemtype": "method",
|
|
9621
9637
|
"name": "replaceWith",
|
|
@@ -9651,7 +9667,7 @@
|
|
|
9651
9667
|
},
|
|
9652
9668
|
{
|
|
9653
9669
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9654
|
-
"line":
|
|
9670
|
+
"line": 1119,
|
|
9655
9671
|
"description": "This hook is the entry point for router.js",
|
|
9656
9672
|
"access": "private",
|
|
9657
9673
|
"tagname": "",
|
|
@@ -9662,7 +9678,7 @@
|
|
|
9662
9678
|
},
|
|
9663
9679
|
{
|
|
9664
9680
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9665
|
-
"line":
|
|
9681
|
+
"line": 1199,
|
|
9666
9682
|
"description": "This hook is the first of the route entry validation hooks\ncalled when an attempt is made to transition into a route\nor one of its children. It is called before `model` and\n`afterModel`, and is appropriate for cases when:\n\n1) A decision can be made to redirect elsewhere without\n needing to resolve the model first.\n2) Any async operations need to occur first before the\n model is attempted to be resolved.\n\nThis hook is provided the current `transition` attempt\nas a parameter, which can be used to `.abort()` the transition,\nsave it for a later `.retry()`, or retrieve values set\non it from a previous hook. You can also just call\n`this.transitionTo` to another route to implicitly\nabort the `transition`.\n\nYou can return a promise from this hook to pause the\ntransition until the promise resolves (or rejects). This could\nbe useful, for instance, for retrieving async code from\nthe server that is required to enter a route.",
|
|
9667
9683
|
"itemtype": "method",
|
|
9668
9684
|
"name": "beforeModel",
|
|
@@ -9685,7 +9701,7 @@
|
|
|
9685
9701
|
},
|
|
9686
9702
|
{
|
|
9687
9703
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9688
|
-
"line":
|
|
9704
|
+
"line": 1233,
|
|
9689
9705
|
"description": "This hook is called after this route's model has resolved.\nIt follows identical async/promise semantics to `beforeModel`\nbut is provided the route's resolved model in addition to\nthe `transition`, and is therefore suited to performing\nlogic that can only take place after the model has already\nresolved.\n\n```app/routes/posts.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsRoute extends Route {\n afterModel(posts, transition) {\n if (posts.get('length') === 1) {\n this.transitionTo('post.show', posts.get('firstObject'));\n }\n }\n}\n```\n\nRefer to documentation for `beforeModel` for a description\nof transition-pausing semantics when a promise is returned\nfrom this hook.",
|
|
9690
9706
|
"itemtype": "method",
|
|
9691
9707
|
"name": "afterModel",
|
|
@@ -9713,7 +9729,7 @@
|
|
|
9713
9729
|
},
|
|
9714
9730
|
{
|
|
9715
9731
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9716
|
-
"line":
|
|
9732
|
+
"line": 1270,
|
|
9717
9733
|
"description": "A hook you can implement to optionally redirect to another route.\n\nCalling `this.transitionTo` from inside of the `redirect` hook will\nabort the current transition (into the route that has implemented `redirect`).\n\n`redirect` and `afterModel` behave very similarly and are\ncalled almost at the same time, but they have an important\ndistinction when calling `this.transitionTo` to a child route\nof the current route. From `afterModel`, this new transition\ninvalidates the current transition, causing `beforeModel`,\n`model`, and `afterModel` hooks to be called again. But the\nsame transition started from `redirect` does _not_ invalidate\nthe current transition. In other words, by the time the `redirect`\nhook has been called, both the resolved model and the attempted\nentry into this route are considered fully validated.",
|
|
9718
9734
|
"itemtype": "method",
|
|
9719
9735
|
"name": "redirect",
|
|
@@ -9737,7 +9753,7 @@
|
|
|
9737
9753
|
},
|
|
9738
9754
|
{
|
|
9739
9755
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9740
|
-
"line":
|
|
9756
|
+
"line": 1295,
|
|
9741
9757
|
"description": "Called when the context is changed by router.js.",
|
|
9742
9758
|
"access": "private",
|
|
9743
9759
|
"tagname": "",
|
|
@@ -9748,7 +9764,7 @@
|
|
|
9748
9764
|
},
|
|
9749
9765
|
{
|
|
9750
9766
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9751
|
-
"line":
|
|
9767
|
+
"line": 1305,
|
|
9752
9768
|
"description": "A hook you can implement to convert the URL into the model for\nthis route.\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\nexport default Router;\n```\n\nThe model for the `post` route is `store.findRecord('post', params.post_id)`.\n\nBy default, if your route has a dynamic segment ending in `_id`:\n\n* The model class is determined from the segment (`post_id`'s\n class is `App.Post`)\n* The find method is called on the model class with the value of\n the dynamic segment.\n\nNote that for routes with dynamic segments, this hook is not always\nexecuted. If the route is entered through a transition (e.g. when\nusing the `link-to` Handlebars helper or the `transitionTo` method\nof routes), and a model context is already provided this hook\nis not called.\n\nA model context does not include a primitive string or number,\nwhich does cause the model hook to be called.\n\nRoutes without dynamic segments will always execute the model hook.\n\n```javascript\n// no dynamic segment, model hook always called\nthis.transitionTo('posts');\n\n// model passed in, so model hook not called\nthePost = store.findRecord('post', 1);\nthis.transitionTo('post', thePost);\n\n// integer passed in, model hook is called\nthis.transitionTo('post', 1);\n\n// model id passed in, model hook is called\n// useful for forcing the hook to execute\nthePost = store.findRecord('post', 1);\nthis.transitionTo('post', thePost.id);\n```\n\nThis hook follows the asynchronous/promise semantics\ndescribed in the documentation for `beforeModel`. In particular,\nif a promise returned from `model` fails, the error will be\nhandled by the `error` hook on `Route`.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n model(params) {\n return this.store.findRecord('post', params.post_id);\n }\n}\n```",
|
|
9753
9769
|
"itemtype": "method",
|
|
9754
9770
|
"name": "model",
|
|
@@ -9776,7 +9792,7 @@
|
|
|
9776
9792
|
},
|
|
9777
9793
|
{
|
|
9778
9794
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9779
|
-
"line":
|
|
9795
|
+
"line": 1415,
|
|
9780
9796
|
"access": "private",
|
|
9781
9797
|
"tagname": "",
|
|
9782
9798
|
"itemtype": "method",
|
|
@@ -9802,7 +9818,7 @@
|
|
|
9802
9818
|
},
|
|
9803
9819
|
{
|
|
9804
9820
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9805
|
-
"line":
|
|
9821
|
+
"line": 1428,
|
|
9806
9822
|
"itemtype": "method",
|
|
9807
9823
|
"name": "findModel",
|
|
9808
9824
|
"params": [
|
|
@@ -9824,7 +9840,7 @@
|
|
|
9824
9840
|
},
|
|
9825
9841
|
{
|
|
9826
9842
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9827
|
-
"line":
|
|
9843
|
+
"line": 1439,
|
|
9828
9844
|
"description": "A hook you can use to setup the controller for the current route.\n\nThis method is called with the controller for the current route and the\nmodel supplied by the `model` hook.\n\nBy default, the `setupController` hook sets the `model` property of\nthe controller to the specified `model` when it is not `undefined`.\n\nIf you implement the `setupController` hook in your Route, it will\nprevent this default behavior. If you want to preserve that behavior\nwhen implementing your `setupController` function, make sure to call\n`super`:\n\n```app/routes/photos.js\nimport Route from '@ember/routing/route';\n\nexport default class PhotosRoute extends Route {\n model() {\n return this.store.findAll('photo');\n }\n\n setupController(controller, model) {\n super.setupController(controller, model);\n\n this.controllerFor('application').set('showingPhotos', true);\n }\n}\n```\n\nThe provided controller will be one resolved based on the name\nof this route.\n\nIf no explicit controller is defined, Ember will automatically create one.\n\nAs an example, consider the router:\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\nexport default Router;\n```\n\nIf you have defined a file for the post controller,\nthe framework will use it.\nIf it is not defined, a basic `Controller` instance would be used.",
|
|
9829
9845
|
"example": [
|
|
9830
9846
|
" Behavior of a basic Controller\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, model) {\n controller.set('model', model);\n }\n});\n```"
|
|
@@ -9857,7 +9873,7 @@
|
|
|
9857
9873
|
},
|
|
9858
9874
|
{
|
|
9859
9875
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9860
|
-
"line":
|
|
9876
|
+
"line": 1515,
|
|
9861
9877
|
"description": "Returns the controller of the current route, or a parent (or any ancestor)\nroute in a route hierarchy.\n\nThe controller instance must already have been created, either through entering the\nassociated route or using `generateController`.\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.controllerFor('posts').set('currentPost', post);\n }\n}\n```",
|
|
9862
9878
|
"itemtype": "method",
|
|
9863
9879
|
"name": "controllerFor",
|
|
@@ -9880,7 +9896,7 @@
|
|
|
9880
9896
|
},
|
|
9881
9897
|
{
|
|
9882
9898
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9883
|
-
"line":
|
|
9899
|
+
"line": 1562,
|
|
9884
9900
|
"description": "Generates a controller for a route.\n\nExample\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class Post extends Route {\n setupController(controller, post) {\n super.setupController(controller, post);\n\n this.generateController('posts');\n }\n}\n```",
|
|
9885
9901
|
"itemtype": "method",
|
|
9886
9902
|
"name": "generateController",
|
|
@@ -9898,7 +9914,7 @@
|
|
|
9898
9914
|
},
|
|
9899
9915
|
{
|
|
9900
9916
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9901
|
-
"line":
|
|
9917
|
+
"line": 1590,
|
|
9902
9918
|
"description": "Returns the resolved model of a parent (or any ancestor) route\nin a route hierarchy. During a transition, all routes\nmust resolve a model object, and if a route\nneeds access to a parent route's model in order to\nresolve a model (or just reuse the model from a parent),\nit can call `this.modelFor(theNameOfParentRoute)` to\nretrieve it. If the ancestor route's model was a promise,\nits resolved result is returned.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' }, function() {\n this.route('comments');\n });\n});\n\nexport default Router;\n```\n\n```app/routes/post/comments.js\nimport Route from '@ember/routing/route';\n\nexport default class PostCommentsRoute extends Route {\n model() {\n let post = this.modelFor('post');\n\n return post.comments;\n }\n}\n```",
|
|
9903
9919
|
"itemtype": "method",
|
|
9904
9920
|
"name": "modelFor",
|
|
@@ -9921,7 +9937,7 @@
|
|
|
9921
9937
|
},
|
|
9922
9938
|
{
|
|
9923
9939
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9924
|
-
"line":
|
|
9940
|
+
"line": 1662,
|
|
9925
9941
|
"description": "`this[RENDER]` is used to render a template into a region of another template\n(indicated by an `{{outlet}}`).",
|
|
9926
9942
|
"itemtype": "method",
|
|
9927
9943
|
"name": "this[RENDER]",
|
|
@@ -9971,7 +9987,7 @@
|
|
|
9971
9987
|
},
|
|
9972
9988
|
{
|
|
9973
9989
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9974
|
-
"line":
|
|
9990
|
+
"line": 1689,
|
|
9975
9991
|
"access": "private",
|
|
9976
9992
|
"tagname": "",
|
|
9977
9993
|
"itemtype": "method",
|
|
@@ -9981,7 +9997,7 @@
|
|
|
9981
9997
|
},
|
|
9982
9998
|
{
|
|
9983
9999
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9984
|
-
"line":
|
|
10000
|
+
"line": 1702,
|
|
9985
10001
|
"description": "Allows you to produce custom metadata for the route.\nThe return value of this method will be attached to\nits corresponding RouteInfoWithAttributes object.\n\nExample\n\n```app/routes/posts/index.js\nimport Route from '@ember/routing/route';\n\nexport default class PostsIndexRoute extends Route {\n buildRouteInfoMetadata() {\n return { title: 'Posts Page' }\n }\n}\n```\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ApplicationRoute extends Route {\n @service router\n\n constructor() {\n super(...arguments);\n\n this.router.on('routeDidChange', transition => {\n document.title = transition.to.metadata.title;\n // would update document's title to \"Posts Page\"\n });\n }\n}\n```",
|
|
9986
10002
|
"itemtype": "method",
|
|
9987
10003
|
"name": "buildRouteInfoMetadata",
|
|
@@ -9996,7 +10012,7 @@
|
|
|
9996
10012
|
},
|
|
9997
10013
|
{
|
|
9998
10014
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
9999
|
-
"line":
|
|
10015
|
+
"line": 1752,
|
|
10000
10016
|
"description": "Store property provides a hook for data persistence libraries to inject themselves.\n\nBy default, this store property provides the exact same functionality previously\nin the model hook.\n\nCurrently, the required interface is:\n\n`store.find(modelName, findArguments)`",
|
|
10001
10017
|
"itemtype": "property",
|
|
10002
10018
|
"name": "store",
|
|
@@ -10008,7 +10024,7 @@
|
|
|
10008
10024
|
},
|
|
10009
10025
|
{
|
|
10010
10026
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10011
|
-
"line":
|
|
10027
|
+
"line": 1818,
|
|
10012
10028
|
"access": "private",
|
|
10013
10029
|
"tagname": "",
|
|
10014
10030
|
"itemtype": "property",
|
|
@@ -10018,7 +10034,7 @@
|
|
|
10018
10034
|
},
|
|
10019
10035
|
{
|
|
10020
10036
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10021
|
-
"line":
|
|
10037
|
+
"line": 1950,
|
|
10022
10038
|
"description": "Sends an action to the router, which will delegate it to the currently\nactive route hierarchy per the bubbling rules explained under `actions`.\n\nExample\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('index');\n});\n\nexport default Router;\n```\n\n```app/routes/application.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class ApplicationRoute extends Route {\n @action\n track(arg) {\n console.log(arg, 'was clicked');\n }\n}\n```\n\n```app/routes/index.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class IndexRoute extends Route {\n @action\n trackIfDebug(arg) {\n if (debug) {\n this.send('track', arg);\n }\n }\n}\n```",
|
|
10023
10039
|
"itemtype": "method",
|
|
10024
10040
|
"name": "send",
|
|
@@ -10042,7 +10058,7 @@
|
|
|
10042
10058
|
},
|
|
10043
10059
|
{
|
|
10044
10060
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10045
|
-
"line":
|
|
10061
|
+
"line": 2282,
|
|
10046
10062
|
"description": "A hook you can implement to convert the route's model into parameters\nfor the URL.\n\n```app/router.js\n// ...\n\nRouter.map(function() {\n this.route('post', { path: '/posts/:post_id' });\n});\n\n```\n\n```app/routes/post.js\nimport Route from '@ember/routing/route';\n\nexport default class PostRoute extends Route {\n model({ post_id }) {\n // the server returns `{ id: 12 }`\n return fetch(`/posts/${post_id}`;\n }\n\n serialize(model) {\n // this will make the URL `/posts/12`\n return { post_id: model.id };\n }\n}\n```\n\nThe default `serialize` method will insert the model's `id` into the\nroute's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\nIf the route has multiple dynamic segments or does not contain '_id', `serialize`\nwill return `getProperties(model, params)`\n\nThis method is called when `transitionTo` is called with a context\nin order to populate the URL.",
|
|
10047
10063
|
"itemtype": "method",
|
|
10048
10064
|
"name": "serialize",
|
|
@@ -10070,7 +10086,7 @@
|
|
|
10070
10086
|
},
|
|
10071
10087
|
{
|
|
10072
10088
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10073
|
-
"line":
|
|
10089
|
+
"line": 2352,
|
|
10074
10090
|
"description": "The controller associated with this route.\n\nExample\n\n```app/routes/form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class FormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n}\n```",
|
|
10075
10091
|
"itemtype": "property",
|
|
10076
10092
|
"name": "controller",
|
|
@@ -10083,7 +10099,7 @@
|
|
|
10083
10099
|
},
|
|
10084
10100
|
{
|
|
10085
10101
|
"file": "packages/@ember/-internals/routing/lib/system/route.ts",
|
|
10086
|
-
"line":
|
|
10102
|
+
"line": 2383,
|
|
10087
10103
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
10088
10104
|
"itemtype": "method",
|
|
10089
10105
|
"name": "queryParamsDidChange",
|
|
@@ -10159,7 +10175,7 @@
|
|
|
10159
10175
|
},
|
|
10160
10176
|
{
|
|
10161
10177
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10162
|
-
"line":
|
|
10178
|
+
"line": 539,
|
|
10163
10179
|
"description": "Initializes the current router instance and sets up the change handling\nevent listeners used by the instances `location` implementation.\n\nA property named `initialURL` will be used to determine the initial URL.\nIf no value is found `/` will be used.",
|
|
10164
10180
|
"itemtype": "method",
|
|
10165
10181
|
"name": "startRouting",
|
|
@@ -10170,7 +10186,7 @@
|
|
|
10170
10186
|
},
|
|
10171
10187
|
{
|
|
10172
10188
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10173
|
-
"line":
|
|
10189
|
+
"line": 662,
|
|
10174
10190
|
"description": "Transition the application into another route. The route may\nbe either a single route or route path:\n\nSee [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.",
|
|
10175
10191
|
"itemtype": "method",
|
|
10176
10192
|
"name": "transitionTo",
|
|
@@ -10203,7 +10219,7 @@
|
|
|
10203
10219
|
},
|
|
10204
10220
|
{
|
|
10205
10221
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10206
|
-
"line":
|
|
10222
|
+
"line": 719,
|
|
10207
10223
|
"description": "Determines if the supplied route is currently active.",
|
|
10208
10224
|
"itemtype": "method",
|
|
10209
10225
|
"name": "isActive",
|
|
@@ -10224,7 +10240,7 @@
|
|
|
10224
10240
|
},
|
|
10225
10241
|
{
|
|
10226
10242
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10227
|
-
"line":
|
|
10243
|
+
"line": 731,
|
|
10228
10244
|
"description": "An alternative form of `isActive` that doesn't require\nmanual concatenation of the arguments into a single\narray.",
|
|
10229
10245
|
"itemtype": "method",
|
|
10230
10246
|
"name": "isActiveIntent",
|
|
@@ -10254,7 +10270,7 @@
|
|
|
10254
10270
|
},
|
|
10255
10271
|
{
|
|
10256
10272
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10257
|
-
"line":
|
|
10273
|
+
"line": 753,
|
|
10258
10274
|
"description": "Does this router instance have the given route.",
|
|
10259
10275
|
"itemtype": "method",
|
|
10260
10276
|
"name": "hasRoute",
|
|
@@ -10269,7 +10285,7 @@
|
|
|
10269
10285
|
},
|
|
10270
10286
|
{
|
|
10271
10287
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10272
|
-
"line":
|
|
10288
|
+
"line": 764,
|
|
10273
10289
|
"description": "Resets the state of the router by clearing the current route\nhandlers and deactivating them.",
|
|
10274
10290
|
"access": "private",
|
|
10275
10291
|
"tagname": "",
|
|
@@ -10280,7 +10296,7 @@
|
|
|
10280
10296
|
},
|
|
10281
10297
|
{
|
|
10282
10298
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10283
|
-
"line":
|
|
10299
|
+
"line": 908,
|
|
10284
10300
|
"description": "Serializes the given query params according to their QP meta information.",
|
|
10285
10301
|
"access": "private",
|
|
10286
10302
|
"tagname": "",
|
|
@@ -10307,7 +10323,7 @@
|
|
|
10307
10323
|
},
|
|
10308
10324
|
{
|
|
10309
10325
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10310
|
-
"line":
|
|
10326
|
+
"line": 938,
|
|
10311
10327
|
"description": "Serializes the value of a query parameter based on a type",
|
|
10312
10328
|
"access": "private",
|
|
10313
10329
|
"tagname": "",
|
|
@@ -10330,7 +10346,7 @@
|
|
|
10330
10346
|
},
|
|
10331
10347
|
{
|
|
10332
10348
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10333
|
-
"line":
|
|
10349
|
+
"line": 956,
|
|
10334
10350
|
"description": "Deserializes the given query params according to their QP meta information.",
|
|
10335
10351
|
"access": "private",
|
|
10336
10352
|
"tagname": "",
|
|
@@ -10357,7 +10373,7 @@
|
|
|
10357
10373
|
},
|
|
10358
10374
|
{
|
|
10359
10375
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10360
|
-
"line":
|
|
10376
|
+
"line": 981,
|
|
10361
10377
|
"description": "Deserializes the value of a query parameter based on a default type",
|
|
10362
10378
|
"access": "private",
|
|
10363
10379
|
"tagname": "",
|
|
@@ -10380,7 +10396,7 @@
|
|
|
10380
10396
|
},
|
|
10381
10397
|
{
|
|
10382
10398
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10383
|
-
"line":
|
|
10399
|
+
"line": 1002,
|
|
10384
10400
|
"description": "Removes (prunes) any query params with default values from the given QP\nobject. Default values are determined from the QP meta information per key.",
|
|
10385
10401
|
"access": "private",
|
|
10386
10402
|
"tagname": "",
|
|
@@ -10407,7 +10423,7 @@
|
|
|
10407
10423
|
},
|
|
10408
10424
|
{
|
|
10409
10425
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10410
|
-
"line":
|
|
10426
|
+
"line": 1088,
|
|
10411
10427
|
"description": "Prepares the query params for a URL or Transition. Restores any undefined QP\nkeys/values, serializes all values, and then prunes any default values.",
|
|
10412
10428
|
"access": "private",
|
|
10413
10429
|
"tagname": "",
|
|
@@ -10444,7 +10460,7 @@
|
|
|
10444
10460
|
},
|
|
10445
10461
|
{
|
|
10446
10462
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10447
|
-
"line":
|
|
10463
|
+
"line": 1115,
|
|
10448
10464
|
"description": "Returns the meta information for the query params of a given route. This\nwill be overridden to allow support for lazy routes.",
|
|
10449
10465
|
"access": "private",
|
|
10450
10466
|
"tagname": "",
|
|
@@ -10466,7 +10482,7 @@
|
|
|
10466
10482
|
},
|
|
10467
10483
|
{
|
|
10468
10484
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10469
|
-
"line":
|
|
10485
|
+
"line": 1129,
|
|
10470
10486
|
"description": "Returns a merged query params meta object for a given set of routeInfos.\nUseful for knowing what query params are available for a given route hierarchy.",
|
|
10471
10487
|
"access": "private",
|
|
10472
10488
|
"tagname": "",
|
|
@@ -10488,7 +10504,7 @@
|
|
|
10488
10504
|
},
|
|
10489
10505
|
{
|
|
10490
10506
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10491
|
-
"line":
|
|
10507
|
+
"line": 1194,
|
|
10492
10508
|
"description": "Maps all query param keys to their fully scoped property name of the form\n`controllerName:propName`.",
|
|
10493
10509
|
"access": "private",
|
|
10494
10510
|
"tagname": "",
|
|
@@ -10520,7 +10536,7 @@
|
|
|
10520
10536
|
},
|
|
10521
10537
|
{
|
|
10522
10538
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10523
|
-
"line":
|
|
10539
|
+
"line": 1236,
|
|
10524
10540
|
"description": "Hydrates (adds/restores) any query params that have pre-existing values into\nthe given queryParams hash. This is what allows query params to be \"sticky\"\nand restore their last known values for their scope.",
|
|
10525
10541
|
"access": "private",
|
|
10526
10542
|
"tagname": "",
|
|
@@ -10547,7 +10563,7 @@
|
|
|
10547
10563
|
},
|
|
10548
10564
|
{
|
|
10549
10565
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10550
|
-
"line":
|
|
10566
|
+
"line": 1400,
|
|
10551
10567
|
"description": "Handles updating the paths and notifying any listeners of the URL\nchange.\n\nTriggers the router level `didTransition` hook.\n\nFor example, to notify google analytics when the route changes,\nyou could use this hook. (Note: requires also including GA scripts, etc.)\n\n```javascript\nimport config from './config/environment';\nimport EmberRouter from '@ember/routing/router';\nimport { service } from '@ember/service';\n\nlet Router = EmberRouter.extend({\n location: config.locationType,\n\n router: service(),\n\n didTransition: function() {\n this._super(...arguments);\n\n ga('send', 'pageview', {\n page: this.router.currentURL,\n title: this.router.currentRouteName,\n });\n }\n});\n```",
|
|
10552
10568
|
"itemtype": "method",
|
|
10553
10569
|
"name": "didTransition",
|
|
@@ -10559,7 +10575,7 @@
|
|
|
10559
10575
|
},
|
|
10560
10576
|
{
|
|
10561
10577
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10562
|
-
"line":
|
|
10578
|
+
"line": 1437,
|
|
10563
10579
|
"description": "Handles notifying any listeners of an impending URL\nchange.\n\nTriggers the router level `willTransition` hook.",
|
|
10564
10580
|
"itemtype": "method",
|
|
10565
10581
|
"name": "willTransition",
|
|
@@ -10571,7 +10587,7 @@
|
|
|
10571
10587
|
},
|
|
10572
10588
|
{
|
|
10573
10589
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10574
|
-
"line":
|
|
10590
|
+
"line": 1450,
|
|
10575
10591
|
"description": "Represents the current URL.",
|
|
10576
10592
|
"itemtype": "property",
|
|
10577
10593
|
"name": "url",
|
|
@@ -10583,7 +10599,7 @@
|
|
|
10583
10599
|
},
|
|
10584
10600
|
{
|
|
10585
10601
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10586
|
-
"line":
|
|
10602
|
+
"line": 1606,
|
|
10587
10603
|
"description": "Finds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
10588
10604
|
"access": "private",
|
|
10589
10605
|
"tagname": "",
|
|
@@ -10608,7 +10624,7 @@
|
|
|
10608
10624
|
},
|
|
10609
10625
|
{
|
|
10610
10626
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10611
|
-
"line":
|
|
10627
|
+
"line": 1627,
|
|
10612
10628
|
"description": "Finds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
10613
10629
|
"access": "private",
|
|
10614
10630
|
"tagname": "",
|
|
@@ -10633,7 +10649,7 @@
|
|
|
10633
10649
|
},
|
|
10634
10650
|
{
|
|
10635
10651
|
"file": "packages/@ember/-internals/routing/lib/system/router.ts",
|
|
10636
|
-
"line":
|
|
10652
|
+
"line": 1649,
|
|
10637
10653
|
"description": "Determines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
10638
10654
|
"access": "private",
|
|
10639
10655
|
"tagname": "",
|
|
@@ -11620,7 +11636,7 @@
|
|
|
11620
11636
|
},
|
|
11621
11637
|
{
|
|
11622
11638
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11623
|
-
"line":
|
|
11639
|
+
"line": 1117,
|
|
11624
11640
|
"description": "Invokes the named method on every object in the receiver that\nimplements it. This method corresponds to the implementation in\nPrototype 1.6.\n\n```javascript\nclass Person {\n name = null;\n\n constructor(name) {\n this.name = name;\n }\n\n greet(prefix='Hello') {\n return `${prefix} ${this.name}`;\n }\n}\n\nlet people = [new Person('Joe'), new Person('Matt')];\n\npeople.invoke('greet'); // ['Hello Joe', 'Hello Matt']\npeople.invoke('greet', 'Bonjour'); // ['Bonjour Joe', 'Bonjour Matt']\n```",
|
|
11625
11641
|
"itemtype": "method",
|
|
11626
11642
|
"name": "invoke",
|
|
@@ -11647,7 +11663,7 @@
|
|
|
11647
11663
|
},
|
|
11648
11664
|
{
|
|
11649
11665
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11650
|
-
"line":
|
|
11666
|
+
"line": 1155,
|
|
11651
11667
|
"description": "Simply converts the object into a genuine array. The order is not\nguaranteed. Corresponds to the method implemented by Prototype.",
|
|
11652
11668
|
"itemtype": "method",
|
|
11653
11669
|
"name": "toArray",
|
|
@@ -11662,7 +11678,7 @@
|
|
|
11662
11678
|
},
|
|
11663
11679
|
{
|
|
11664
11680
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11665
|
-
"line":
|
|
11681
|
+
"line": 1167,
|
|
11666
11682
|
"description": "Returns a copy of the array with all `null` and `undefined` elements removed.\n\n```javascript\nlet arr = ['a', null, 'c', undefined];\narr.compact(); // ['a', 'c']\n```",
|
|
11667
11683
|
"itemtype": "method",
|
|
11668
11684
|
"name": "compact",
|
|
@@ -11677,7 +11693,7 @@
|
|
|
11677
11693
|
},
|
|
11678
11694
|
{
|
|
11679
11695
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11680
|
-
"line":
|
|
11696
|
+
"line": 1183,
|
|
11681
11697
|
"description": "Used to determine if the array contains the passed object.\nReturns `true` if found, `false` otherwise.\n\nThe optional `startAt` argument can be used to pass a starting\nindex to search from, effectively slicing the searchable portion\nof the array. If it's negative it will add the array length to\nthe startAt value passed in as the index to search from. If less\nthan or equal to `-1 * array.length` the entire array is searched.\n\nThis method has the same behavior of JavaScript's [Array.includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes).\n\n```javascript\n[1, 2, 3].includes(2); // true\n[1, 2, 3].includes(4); // false\n[1, 2, 3].includes(3, 2); // true\n[1, 2, 3].includes(3, 3); // false\n[1, 2, 3].includes(3, -1); // true\n[1, 2, 3].includes(1, -1); // false\n[1, 2, 3].includes(1, -4); // true\n[1, 2, NaN].includes(NaN); // true\n```",
|
|
11682
11698
|
"itemtype": "method",
|
|
11683
11699
|
"name": "includes",
|
|
@@ -11704,7 +11720,7 @@
|
|
|
11704
11720
|
},
|
|
11705
11721
|
{
|
|
11706
11722
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11707
|
-
"line":
|
|
11723
|
+
"line": 1216,
|
|
11708
11724
|
"description": "Sorts the array by the keys specified in the argument.\n\nYou may provide multiple arguments to sort by multiple properties.\n\n```javascript\n let colors = [\n { name: 'red', weight: 500 },\n { name: 'green', weight: 600 },\n { name: 'blue', weight: 500 }\n];\n\n colors.sortBy('name');\n // [{name: 'blue', weight: 500}, {name: 'green', weight: 600}, {name: 'red', weight: 500}]\n\n colors.sortBy('weight', 'name');\n // [{name: 'blue', weight: 500}, {name: 'red', weight: 500}, {name: 'green', weight: 600}]\n ```",
|
|
11709
11725
|
"itemtype": "method",
|
|
11710
11726
|
"name": "sortBy",
|
|
@@ -11727,7 +11743,7 @@
|
|
|
11727
11743
|
},
|
|
11728
11744
|
{
|
|
11729
11745
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11730
|
-
"line":
|
|
11746
|
+
"line": 1260,
|
|
11731
11747
|
"description": "Returns a new array that contains only unique values. The default\nimplementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = ['a', 'a', 'b', 'b'];\narr.uniq(); // ['a', 'b']\n```\n\nThis only works on primitive data types, e.g. Strings, Numbers, etc.",
|
|
11732
11748
|
"itemtype": "method",
|
|
11733
11749
|
"name": "uniq",
|
|
@@ -11742,7 +11758,7 @@
|
|
|
11742
11758
|
},
|
|
11743
11759
|
{
|
|
11744
11760
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11745
|
-
"line":
|
|
11761
|
+
"line": 1279,
|
|
11746
11762
|
"description": "Returns a new array that contains only items containing a unique property value.\nThe default implementation returns an array regardless of the receiver type.\n\n```javascript\nlet arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\narr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }]\n\nlet arr = [2.2, 2.1, 3.2, 3.3];\narr.uniqBy(Math.floor); // [2.2, 3.2];\n```",
|
|
11747
11763
|
"itemtype": "method",
|
|
11748
11764
|
"name": "uniqBy",
|
|
@@ -11764,7 +11780,7 @@
|
|
|
11764
11780
|
},
|
|
11765
11781
|
{
|
|
11766
11782
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11767
|
-
"line":
|
|
11783
|
+
"line": 1301,
|
|
11768
11784
|
"description": "Returns a new array that excludes the passed value. The default\nimplementation returns an array regardless of the receiver type.\nIf the receiver does not contain the value it returns the original array.\n\n```javascript\nlet arr = ['a', 'b', 'a', 'c'];\narr.without('a'); // ['b', 'c']\n```",
|
|
11769
11785
|
"itemtype": "method",
|
|
11770
11786
|
"name": "without",
|
|
@@ -11786,7 +11802,7 @@
|
|
|
11786
11802
|
},
|
|
11787
11803
|
{
|
|
11788
11804
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11789
|
-
"line":
|
|
11805
|
+
"line": 1349,
|
|
11790
11806
|
"description": "__Required.__ You must implement this method to apply this mixin.\n\nThis is one of the primitives you must implement to support `Array`.\nYou should replace amt objects started at idx with the objects in the\npassed array.\n\nNote that this method is expected to validate the type(s) of objects that it expects.",
|
|
11791
11807
|
"itemtype": "method",
|
|
11792
11808
|
"name": "replace",
|
|
@@ -11814,7 +11830,7 @@
|
|
|
11814
11830
|
},
|
|
11815
11831
|
{
|
|
11816
11832
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11817
|
-
"line":
|
|
11833
|
+
"line": 1368,
|
|
11818
11834
|
"description": "Remove all elements from the array. This is useful if you\nwant to reuse an existing array without having to recreate it.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.length; // 3\ncolors.clear(); // []\ncolors.length; // 0\n```",
|
|
11819
11835
|
"itemtype": "method",
|
|
11820
11836
|
"name": "clear",
|
|
@@ -11829,7 +11845,7 @@
|
|
|
11829
11845
|
},
|
|
11830
11846
|
{
|
|
11831
11847
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11832
|
-
"line":
|
|
11848
|
+
"line": 1394,
|
|
11833
11849
|
"description": "This will use the primitive `replace()` method to insert an object at the\nspecified index.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.insertAt(2, 'yellow'); // ['red', 'green', 'yellow', 'blue']\ncolors.insertAt(5, 'orange'); // Error: Index out of range\n```",
|
|
11834
11850
|
"itemtype": "method",
|
|
11835
11851
|
"name": "insertAt",
|
|
@@ -11856,7 +11872,7 @@
|
|
|
11856
11872
|
},
|
|
11857
11873
|
{
|
|
11858
11874
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11859
|
-
"line":
|
|
11875
|
+
"line": 1416,
|
|
11860
11876
|
"description": "Remove an object at the specified index using the `replace()` primitive\nmethod. You can pass either a single index, or a start and a length.\n\nIf you pass a start and length that is beyond the\nlength this method will throw an assertion.\n\n```javascript\nlet colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n\ncolors.removeAt(0); // ['green', 'blue', 'yellow', 'orange']\ncolors.removeAt(2, 2); // ['green', 'blue']\ncolors.removeAt(4, 2); // Error: Index out of range\n```",
|
|
11861
11877
|
"itemtype": "method",
|
|
11862
11878
|
"name": "removeAt",
|
|
@@ -11883,7 +11899,7 @@
|
|
|
11883
11899
|
},
|
|
11884
11900
|
{
|
|
11885
11901
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11886
|
-
"line":
|
|
11902
|
+
"line": 1441,
|
|
11887
11903
|
"description": "Push the object onto the end of the array. Works just like `push()` but it\nis KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green'];\n\ncolors.pushObject('black'); // ['red', 'green', 'black']\ncolors.pushObject(['yellow']); // ['red', 'green', ['yellow']]\n```",
|
|
11888
11904
|
"itemtype": "method",
|
|
11889
11905
|
"name": "pushObject",
|
|
@@ -11904,7 +11920,7 @@
|
|
|
11904
11920
|
},
|
|
11905
11921
|
{
|
|
11906
11922
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11907
|
-
"line":
|
|
11923
|
+
"line": 1461,
|
|
11908
11924
|
"description": "Add the objects in the passed array to the end of the array. Defers\nnotifying observers of the change until all objects are added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange']\n```",
|
|
11909
11925
|
"itemtype": "method",
|
|
11910
11926
|
"name": "pushObjects",
|
|
@@ -11926,7 +11942,7 @@
|
|
|
11926
11942
|
},
|
|
11927
11943
|
{
|
|
11928
11944
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11929
|
-
"line":
|
|
11945
|
+
"line": 1481,
|
|
11930
11946
|
"description": "Pop object from array or nil if none are left. Works just like `pop()` but\nit is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.popObject(); // 'blue'\nconsole.log(colors); // ['red', 'green']\n```",
|
|
11931
11947
|
"itemtype": "method",
|
|
11932
11948
|
"name": "popObject",
|
|
@@ -11940,7 +11956,7 @@
|
|
|
11940
11956
|
},
|
|
11941
11957
|
{
|
|
11942
11958
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11943
|
-
"line":
|
|
11959
|
+
"line": 1507,
|
|
11944
11960
|
"description": "Shift an object from start of array or nil if none are left. Works just\nlike `shift()` but it is KVO-compliant.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.shiftObject(); // 'red'\nconsole.log(colors); // ['green', 'blue']\n```",
|
|
11945
11961
|
"itemtype": "method",
|
|
11946
11962
|
"name": "shiftObject",
|
|
@@ -11954,7 +11970,7 @@
|
|
|
11954
11970
|
},
|
|
11955
11971
|
{
|
|
11956
11972
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11957
|
-
"line":
|
|
11973
|
+
"line": 1532,
|
|
11958
11974
|
"description": "Unshift an object to start of array. Works just like `unshift()` but it is\nKVO-compliant.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObject('yellow'); // ['yellow', 'red']\ncolors.unshiftObject(['black']); // [['black'], 'yellow', 'red']\n```",
|
|
11959
11975
|
"itemtype": "method",
|
|
11960
11976
|
"name": "unshiftObject",
|
|
@@ -11975,7 +11991,7 @@
|
|
|
11975
11991
|
},
|
|
11976
11992
|
{
|
|
11977
11993
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
11978
|
-
"line":
|
|
11994
|
+
"line": 1552,
|
|
11979
11995
|
"description": "Adds the named objects to the beginning of the array. Defers notifying\nobservers until all objects have been added.\n\n```javascript\nlet colors = ['red'];\n\ncolors.unshiftObjects(['black', 'white']); // ['black', 'white', 'red']\ncolors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n```",
|
|
11980
11996
|
"itemtype": "method",
|
|
11981
11997
|
"name": "unshiftObjects",
|
|
@@ -11997,7 +12013,7 @@
|
|
|
11997
12013
|
},
|
|
11998
12014
|
{
|
|
11999
12015
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12000
|
-
"line":
|
|
12016
|
+
"line": 1573,
|
|
12001
12017
|
"description": "Reverse objects in the array. Works just like `reverse()` but it is\nKVO-compliant.",
|
|
12002
12018
|
"itemtype": "method",
|
|
12003
12019
|
"name": "reverseObjects",
|
|
@@ -12012,7 +12028,7 @@
|
|
|
12012
12028
|
},
|
|
12013
12029
|
{
|
|
12014
12030
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12015
|
-
"line":
|
|
12031
|
+
"line": 1592,
|
|
12016
12032
|
"description": "Replace all the receiver's content with content of the argument.\nIf argument is an empty array receiver will be cleared.\n\n```javascript\nlet colors = ['red', 'green', 'blue'];\n\ncolors.setObjects(['black', 'white']); // ['black', 'white']\ncolors.setObjects([]); // []\n```",
|
|
12017
12033
|
"itemtype": "method",
|
|
12018
12034
|
"name": "setObjects",
|
|
@@ -12034,7 +12050,7 @@
|
|
|
12034
12050
|
},
|
|
12035
12051
|
{
|
|
12036
12052
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12037
|
-
"line":
|
|
12053
|
+
"line": 1619,
|
|
12038
12054
|
"description": "Remove all occurrences of an object in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n\ncities.removeObject('Chicago'); // ['Berlin', 'Lima']\ncities.removeObject('Lima'); // ['Berlin']\ncities.removeObject('Tokyo') // ['Berlin']\n```",
|
|
12039
12055
|
"itemtype": "method",
|
|
12040
12056
|
"name": "removeObject",
|
|
@@ -12056,7 +12072,7 @@
|
|
|
12056
12072
|
},
|
|
12057
12073
|
{
|
|
12058
12074
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12059
|
-
"line":
|
|
12075
|
+
"line": 1647,
|
|
12060
12076
|
"description": "Removes each object in the passed array from the receiver.",
|
|
12061
12077
|
"itemtype": "method",
|
|
12062
12078
|
"name": "removeObjects",
|
|
@@ -12078,7 +12094,7 @@
|
|
|
12078
12094
|
},
|
|
12079
12095
|
{
|
|
12080
12096
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12081
|
-
"line":
|
|
12097
|
+
"line": 1664,
|
|
12082
12098
|
"description": "Push the object onto the end of the array if it is not already\npresent in the array.\n\n```javascript\nlet cities = ['Chicago', 'Berlin'];\n\ncities.addObject('Lima'); // ['Chicago', 'Berlin', 'Lima']\ncities.addObject('Berlin'); // ['Chicago', 'Berlin', 'Lima']\n```",
|
|
12083
12099
|
"itemtype": "method",
|
|
12084
12100
|
"name": "addObject",
|
|
@@ -12100,7 +12116,7 @@
|
|
|
12100
12116
|
},
|
|
12101
12117
|
{
|
|
12102
12118
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12103
|
-
"line":
|
|
12119
|
+
"line": 1690,
|
|
12104
12120
|
"description": "Adds each object in the passed array to the receiver.",
|
|
12105
12121
|
"itemtype": "method",
|
|
12106
12122
|
"name": "addObjects",
|
|
@@ -12122,7 +12138,7 @@
|
|
|
12122
12138
|
},
|
|
12123
12139
|
{
|
|
12124
12140
|
"file": "packages/@ember/-internals/runtime/lib/mixins/array.js",
|
|
12125
|
-
"line":
|
|
12141
|
+
"line": 1706,
|
|
12126
12142
|
"description": "Creates an `Ember.NativeArray` from an Array-like object.\nDoes not modify the original object's contents. `A()` is not needed if\n`EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,\nit is recommended that you use `A()` when creating addons for\nember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`\nwill be `true`.\n\nExample\n\n```app/components/my-component.js\nimport Component from '@ember/component';\nimport { A } from '@ember/array';\n\nexport default Component.extend({\n tagName: 'ul',\n classNames: ['pagination'],\n\n init() {\n this._super(...arguments);\n\n if (!this.get('content')) {\n this.set('content', A());\n this.set('otherContent', A([1,2,3]));\n }\n }\n});\n```",
|
|
12127
12143
|
"itemtype": "method",
|
|
12128
12144
|
"name": "A",
|
|
@@ -12454,7 +12470,7 @@
|
|
|
12454
12470
|
},
|
|
12455
12471
|
{
|
|
12456
12472
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12457
|
-
"line":
|
|
12473
|
+
"line": 24,
|
|
12458
12474
|
"description": "Sets the provided key or path to the value.",
|
|
12459
12475
|
"class": "Observable",
|
|
12460
12476
|
"module": "ember",
|
|
@@ -12462,7 +12478,7 @@
|
|
|
12462
12478
|
},
|
|
12463
12479
|
{
|
|
12464
12480
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12465
|
-
"line":
|
|
12481
|
+
"line": 30,
|
|
12466
12482
|
"description": "Sets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.",
|
|
12467
12483
|
"class": "Observable",
|
|
12468
12484
|
"module": "ember",
|
|
@@ -12470,7 +12486,7 @@
|
|
|
12470
12486
|
},
|
|
12471
12487
|
{
|
|
12472
12488
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12473
|
-
"line":
|
|
12489
|
+
"line": 37,
|
|
12474
12490
|
"description": "Convenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.",
|
|
12475
12491
|
"class": "Observable",
|
|
12476
12492
|
"module": "ember",
|
|
@@ -12478,7 +12494,7 @@
|
|
|
12478
12494
|
},
|
|
12479
12495
|
{
|
|
12480
12496
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12481
|
-
"line":
|
|
12497
|
+
"line": 43,
|
|
12482
12498
|
"description": "Adds an observer on a property.",
|
|
12483
12499
|
"class": "Observable",
|
|
12484
12500
|
"module": "ember",
|
|
@@ -12486,7 +12502,7 @@
|
|
|
12486
12502
|
},
|
|
12487
12503
|
{
|
|
12488
12504
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12489
|
-
"line":
|
|
12505
|
+
"line": 49,
|
|
12490
12506
|
"description": "Remove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
12491
12507
|
"class": "Observable",
|
|
12492
12508
|
"module": "ember",
|
|
@@ -12494,7 +12510,7 @@
|
|
|
12494
12510
|
},
|
|
12495
12511
|
{
|
|
12496
12512
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12497
|
-
"line":
|
|
12513
|
+
"line": 62,
|
|
12498
12514
|
"description": "Set the value of a property to the current value plus some amount.",
|
|
12499
12515
|
"class": "Observable",
|
|
12500
12516
|
"module": "ember",
|
|
@@ -12502,7 +12518,7 @@
|
|
|
12502
12518
|
},
|
|
12503
12519
|
{
|
|
12504
12520
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12505
|
-
"line":
|
|
12521
|
+
"line": 68,
|
|
12506
12522
|
"description": "Set the value of a property to the current value minus some amount.",
|
|
12507
12523
|
"class": "Observable",
|
|
12508
12524
|
"module": "ember",
|
|
@@ -12510,7 +12526,7 @@
|
|
|
12510
12526
|
},
|
|
12511
12527
|
{
|
|
12512
12528
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12513
|
-
"line":
|
|
12529
|
+
"line": 74,
|
|
12514
12530
|
"description": "Set the value of a boolean property to the opposite of its\ncurrent value.",
|
|
12515
12531
|
"class": "Observable",
|
|
12516
12532
|
"module": "ember",
|
|
@@ -12518,7 +12534,7 @@
|
|
|
12518
12534
|
},
|
|
12519
12535
|
{
|
|
12520
12536
|
"file": "packages/@ember/-internals/runtime/lib/mixins/observable.d.ts",
|
|
12521
|
-
"line":
|
|
12537
|
+
"line": 80,
|
|
12522
12538
|
"description": "Returns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
12523
12539
|
"class": "Observable",
|
|
12524
12540
|
"module": "ember",
|
|
@@ -13724,38 +13740,9 @@
|
|
|
13724
13740
|
},
|
|
13725
13741
|
{
|
|
13726
13742
|
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13727
|
-
"line":
|
|
13728
|
-
"class": "EmberObject",
|
|
13729
|
-
"module": "ember",
|
|
13730
|
-
"namespace": "Ember"
|
|
13731
|
-
},
|
|
13732
|
-
{
|
|
13733
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13734
|
-
"line": 14,
|
|
13735
|
-
"class": "EmberObject",
|
|
13736
|
-
"module": "ember",
|
|
13737
|
-
"namespace": "Ember"
|
|
13738
|
-
},
|
|
13739
|
-
{
|
|
13740
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13741
|
-
"line": 31,
|
|
13742
|
-
"class": "EmberObject",
|
|
13743
|
-
"module": "ember",
|
|
13744
|
-
"namespace": "Ember"
|
|
13745
|
-
},
|
|
13746
|
-
{
|
|
13747
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13748
|
-
"line": 34,
|
|
13749
|
-
"class": "EmberObject",
|
|
13750
|
-
"module": "ember",
|
|
13751
|
-
"namespace": "Ember"
|
|
13752
|
-
},
|
|
13753
|
-
{
|
|
13754
|
-
"file": "packages/@ember/-internals/runtime/lib/system/object.d.ts",
|
|
13755
|
-
"line": 41,
|
|
13743
|
+
"line": 9,
|
|
13756
13744
|
"class": "EmberObject",
|
|
13757
|
-
"module": "ember"
|
|
13758
|
-
"namespace": "Ember"
|
|
13745
|
+
"module": "@ember/application"
|
|
13759
13746
|
},
|
|
13760
13747
|
{
|
|
13761
13748
|
"file": "packages/@ember/-internals/runtime/lib/compare.js",
|
|
@@ -13822,8 +13809,7 @@
|
|
|
13822
13809
|
"params": [
|
|
13823
13810
|
{
|
|
13824
13811
|
"name": "item",
|
|
13825
|
-
"description": "the item to check"
|
|
13826
|
-
"type": "Object"
|
|
13812
|
+
"description": "the item to check"
|
|
13827
13813
|
}
|
|
13828
13814
|
],
|
|
13829
13815
|
"return": {
|
|
@@ -14554,7 +14540,7 @@
|
|
|
14554
14540
|
},
|
|
14555
14541
|
{
|
|
14556
14542
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14557
|
-
"line":
|
|
14543
|
+
"line": 157,
|
|
14558
14544
|
"access": "private",
|
|
14559
14545
|
"tagname": "",
|
|
14560
14546
|
"itemtype": "method",
|
|
@@ -14571,7 +14557,7 @@
|
|
|
14571
14557
|
},
|
|
14572
14558
|
{
|
|
14573
14559
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14574
|
-
"line":
|
|
14560
|
+
"line": 166,
|
|
14575
14561
|
"access": "private",
|
|
14576
14562
|
"tagname": "",
|
|
14577
14563
|
"itemtype": "method",
|
|
@@ -14588,7 +14574,7 @@
|
|
|
14588
14574
|
},
|
|
14589
14575
|
{
|
|
14590
14576
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14591
|
-
"line":
|
|
14577
|
+
"line": 181,
|
|
14592
14578
|
"description": "`getViewClientRects` provides information about the position of the border\nbox edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
14593
14579
|
"access": "private",
|
|
14594
14580
|
"tagname": "",
|
|
@@ -14606,7 +14592,7 @@
|
|
|
14606
14592
|
},
|
|
14607
14593
|
{
|
|
14608
14594
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14609
|
-
"line":
|
|
14595
|
+
"line": 197,
|
|
14610
14596
|
"description": "`getViewBoundingClientRect` provides information about the position of the\nbounding border box edges of a view relative to the viewport.\n\nIt is only intended to be used by development tools like the Ember Inspector\nand may not work on older browsers.",
|
|
14611
14597
|
"access": "private",
|
|
14612
14598
|
"tagname": "",
|
|
@@ -14624,7 +14610,7 @@
|
|
|
14624
14610
|
},
|
|
14625
14611
|
{
|
|
14626
14612
|
"file": "packages/@ember/-internals/views/lib/system/utils.ts",
|
|
14627
|
-
"line":
|
|
14613
|
+
"line": 213,
|
|
14628
14614
|
"description": "Determines if the element matches the specified selector.",
|
|
14629
14615
|
"access": "private",
|
|
14630
14616
|
"tagname": "",
|
|
@@ -17199,7 +17185,7 @@
|
|
|
17199
17185
|
},
|
|
17200
17186
|
{
|
|
17201
17187
|
"file": "packages/@ember/object/compat.ts",
|
|
17202
|
-
"line":
|
|
17188
|
+
"line": 40,
|
|
17203
17189
|
"description": "`@dependentKeyCompat` is decorator that can be used on _native getters_ that\nuse tracked properties. It exposes the getter to Ember's classic computed\nproperty and observer systems, so they can watch it for changes. It can be\nused in both native and classic classes.\n\nNative Example:\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { computed, set } from '@ember/object';\n\nclass Person {\n @tracked firstName;\n @tracked lastName;\n\n @dependentKeyCompat\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n}\n\nclass Profile {\n constructor(person) {\n set(this, 'person', person);\n }\n\n @computed('person.fullName')\n get helloMessage() {\n return `Hello, ${this.person.fullName}!`;\n }\n}\n```\n\nClassic Example:\n\n```js\nimport { tracked } from '@glimmer/tracking';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport EmberObject, { computed, observer, set } from '@ember/object';\n\nconst Person = EmberObject.extend({\n firstName: tracked(),\n lastName: tracked(),\n\n fullName: dependentKeyCompat(function() {\n return `${this.firstName} ${this.lastName}`;\n }),\n});\n\nconst Profile = EmberObject.extend({\n person: null,\n\n helloMessage: computed('person.fullName', function() {\n return `Hello, ${this.person.fullName}!`;\n }),\n\n onNameUpdated: observer('person.fullName', function() {\n console.log('person name updated!');\n }),\n});\n```\n\n`dependentKeyCompat()` can receive a getter function or an object containing\n`get`/`set` methods when used in classic classes, like computed properties.\n\nIn general, only properties which you _expect_ to be watched by older,\nuntracked clases should be marked as dependency compatible. The decorator is\nmeant as an interop layer for parts of Ember's older classic APIs, and should\nnot be applied to every possible getter/setter in classes. The number of\ndependency compatible getters should be _minimized_ wherever possible. New\napplication code should not need to use `@dependentKeyCompat`, since it is\nonly for interoperation with older code.",
|
|
17204
17190
|
"access": "public",
|
|
17205
17191
|
"tagname": "",
|
|
@@ -18453,7 +18439,7 @@
|
|
|
18453
18439
|
},
|
|
18454
18440
|
{
|
|
18455
18441
|
"message": "replacing incorrect tag: returns with return",
|
|
18456
|
-
"line": " packages/@ember/-internals/routing/lib/system/route.ts:
|
|
18442
|
+
"line": " packages/@ember/-internals/routing/lib/system/route.ts:2383"
|
|
18457
18443
|
},
|
|
18458
18444
|
{
|
|
18459
18445
|
"message": "unknown tag: internal",
|
|
@@ -18549,11 +18535,11 @@
|
|
|
18549
18535
|
},
|
|
18550
18536
|
{
|
|
18551
18537
|
"message": "Missing item type",
|
|
18552
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
18538
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:104"
|
|
18553
18539
|
},
|
|
18554
18540
|
{
|
|
18555
18541
|
"message": "Missing item type",
|
|
18556
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
18542
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:112"
|
|
18557
18543
|
},
|
|
18558
18544
|
{
|
|
18559
18545
|
"message": "Missing item type\nThe template-compiler does not support strict mode at this time.\nprecompile from ember-template-compiler returns a string and\nnot a template-factory, so it doesn't help with strict-mode testing.\n\nWe also can't import from `@ember/template-compiler` because it\ndoesn't exist to this kind of test, otherwise we'd be able to use\nprecompileTemplate, which would be perfect :D\n\nCopied(ish) from https://github.com/NullVoxPopuli/ember-repl/blob/main/addon/hbs.ts#L51",
|
|
@@ -18779,6 +18765,18 @@
|
|
|
18779
18765
|
"message": "Missing item type",
|
|
18780
18766
|
"line": " packages/@ember/-internals/metal/lib/tracked.ts:16"
|
|
18781
18767
|
},
|
|
18768
|
+
{
|
|
18769
|
+
"message": "Missing item type",
|
|
18770
|
+
"line": " packages/@ember/-internals/owner/index.ts:36"
|
|
18771
|
+
},
|
|
18772
|
+
{
|
|
18773
|
+
"message": "Missing item type",
|
|
18774
|
+
"line": " packages/@ember/-internals/owner/index.ts:38"
|
|
18775
|
+
},
|
|
18776
|
+
{
|
|
18777
|
+
"message": "Missing item type",
|
|
18778
|
+
"line": " packages/@ember/-internals/owner/index.ts:40"
|
|
18779
|
+
},
|
|
18782
18780
|
{
|
|
18783
18781
|
"message": "Missing item type",
|
|
18784
18782
|
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:76"
|
|
@@ -18789,7 +18787,7 @@
|
|
|
18789
18787
|
},
|
|
18790
18788
|
{
|
|
18791
18789
|
"message": "Missing item type",
|
|
18792
|
-
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:
|
|
18790
|
+
"line": " packages/@ember/-internals/routing/lib/location/auto_location.ts:300"
|
|
18793
18791
|
},
|
|
18794
18792
|
{
|
|
18795
18793
|
"message": "Missing item type",
|
|
@@ -18809,15 +18807,15 @@
|
|
|
18809
18807
|
},
|
|
18810
18808
|
{
|
|
18811
18809
|
"message": "Missing item type\nFinds the name of the substate route if it exists for the given route. A\nsubstate route is of the form `route_state`, such as `foo_loading`.",
|
|
18812
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
18810
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1606"
|
|
18813
18811
|
},
|
|
18814
18812
|
{
|
|
18815
18813
|
"message": "Missing item type\nFinds the name of the state route if it exists for the given route. A state\nroute is of the form `route.state`, such as `foo.loading`. Properly Handles\n`application` named routes.",
|
|
18816
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
18814
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1627"
|
|
18817
18815
|
},
|
|
18818
18816
|
{
|
|
18819
18817
|
"message": "Missing item type\nDetermines whether or not a route has been defined by checking that the route\nis in the Router's map and the owner has a registration for that route.",
|
|
18820
|
-
"line": " packages/@ember/-internals/routing/lib/system/router.ts:
|
|
18818
|
+
"line": " packages/@ember/-internals/routing/lib/system/router.ts:1649"
|
|
18821
18819
|
},
|
|
18822
18820
|
{
|
|
18823
18821
|
"message": "Missing item type\nThis mixin allows for Ember objects to subscribe to and emit events.",
|
|
@@ -18857,39 +18855,39 @@
|
|
|
18857
18855
|
},
|
|
18858
18856
|
{
|
|
18859
18857
|
"message": "Missing item type\nSets the provided key or path to the value.",
|
|
18860
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18858
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:24"
|
|
18861
18859
|
},
|
|
18862
18860
|
{
|
|
18863
18861
|
"message": "Missing item type\nSets a list of properties at once. These properties are set inside\na single `beginPropertyChanges` and `endPropertyChanges` batch, so\nobservers will be buffered.",
|
|
18864
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18862
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:30"
|
|
18865
18863
|
},
|
|
18866
18864
|
{
|
|
18867
18865
|
"message": "Missing item type\nConvenience method to call `propertyWillChange` and `propertyDidChange` in\nsuccession.",
|
|
18868
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18866
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:37"
|
|
18869
18867
|
},
|
|
18870
18868
|
{
|
|
18871
18869
|
"message": "Missing item type\nAdds an observer on a property.",
|
|
18872
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18870
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:43"
|
|
18873
18871
|
},
|
|
18874
18872
|
{
|
|
18875
18873
|
"message": "Missing item type\nRemove an observer you have previously registered on this object. Pass\nthe same key, target, and method you passed to `addObserver()` and your\ntarget will no longer receive notifications.",
|
|
18876
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18874
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:49"
|
|
18877
18875
|
},
|
|
18878
18876
|
{
|
|
18879
18877
|
"message": "Missing item type\nSet the value of a property to the current value plus some amount.",
|
|
18880
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18878
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:62"
|
|
18881
18879
|
},
|
|
18882
18880
|
{
|
|
18883
18881
|
"message": "Missing item type\nSet the value of a property to the current value minus some amount.",
|
|
18884
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18882
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:68"
|
|
18885
18883
|
},
|
|
18886
18884
|
{
|
|
18887
18885
|
"message": "Missing item type\nSet the value of a boolean property to the opposite of its\ncurrent value.",
|
|
18888
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18886
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:74"
|
|
18889
18887
|
},
|
|
18890
18888
|
{
|
|
18891
18889
|
"message": "Missing item type\nReturns the cached value of a computed property, if it exists.\nThis allows you to inspect the value of a computed property\nwithout accidentally invoking it if it is intended to be\ngenerated lazily.",
|
|
18892
|
-
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:
|
|
18890
|
+
"line": " packages/@ember/-internals/runtime/lib/mixins/observable.d.ts:80"
|
|
18893
18891
|
},
|
|
18894
18892
|
{
|
|
18895
18893
|
"message": "Missing item type\nUsed to infer the type of ember classes of type `T`.\n\nGenerally you would use `EmberClass.create()` instead of `new EmberClass()`.\n\nThe single-arg constructor is required by the typescript compiler.\nThe multi-arg constructor is included for better ergonomics.\n\nImplementation is carefully chosen for the reasons described in\nhttps://github.com/typed-ember/ember-typings/pull/29",
|
|
@@ -18969,23 +18967,7 @@
|
|
|
18969
18967
|
},
|
|
18970
18968
|
{
|
|
18971
18969
|
"message": "Missing item type",
|
|
18972
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:
|
|
18973
|
-
},
|
|
18974
|
-
{
|
|
18975
|
-
"message": "Missing item type",
|
|
18976
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:14"
|
|
18977
|
-
},
|
|
18978
|
-
{
|
|
18979
|
-
"message": "Missing item type",
|
|
18980
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:31"
|
|
18981
|
-
},
|
|
18982
|
-
{
|
|
18983
|
-
"message": "Missing item type",
|
|
18984
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:34"
|
|
18985
|
-
},
|
|
18986
|
-
{
|
|
18987
|
-
"message": "Missing item type",
|
|
18988
|
-
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:41"
|
|
18970
|
+
"line": " packages/@ember/-internals/runtime/lib/system/object.d.ts:9"
|
|
18989
18971
|
},
|
|
18990
18972
|
{
|
|
18991
18973
|
"message": "Missing item type",
|