AutoLocation

Ember.AutoLocation Namespace

PRIVATE

Defined in: packages/ember-routing/lib/location/auto_location.js:22

Module: ember-routing

Ember.AutoLocation will select the best location option based off browser support with the priority order: history, hash, none.

Clean pushState paths accessed by hashchange-only browsers will be redirected to the hash-equivalent and vice versa so future transitions are consistent.

Keep in mind that since some of your users will use HistoryLocation, your server must serve the Ember app at all the routes you define.

_getHashPathprivate

Defined in packages/ember-routing/lib/location/auto_location.js:275

cancelRouterSetupprivate

Defined in packages/ember-routing/lib/location/auto_location.js:84
Available since 1.5.1

Default: false

globalprivate

Defined in packages/ember-routing/lib/location/auto_location.js:61
Available since 1.11

Default: window

historyprivate

Defined in packages/ember-routing/lib/location/auto_location.js:49
Available since 1.5.1

Default: environment.history

locationprivate

Defined in packages/ember-routing/lib/location/auto_location.js:38

Default: environment.location

rootURLprivate

Defined in packages/ember-routing/lib/location/auto_location.js:96
Available since 1.5.1

Default: '/'

userAgentprivate

Defined in packages/ember-routing/lib/location/auto_location.js:72
Available since 1.5.1

Default: environment.history

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://emberjs.com/api/classes/Ember.AutoLocation.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部