Ember.FEATURES

Ember.FEATURES Namespace

PUBLIC

Defined in: packages/ember-metal/lib/features.js:5

Module: ember

The hash of enabled Canary features. Add to this, any canary features before creating your application.

Alternatively (and recommended), you can also define EmberENV.FEATURES if you need to enable features flagged at runtime.

isEnabled (feature) Booleanpublic

Defined in packages/ember-metal/lib/features.js:20
Available since 1.1.0

Determine whether the specified feature is enabled. Used by Ember's build tools to exclude experimental features from beta/stable builds.

You can define the following configuration options:

  • EmberENV.ENABLE_OPTIONAL_FEATURES - enable any features that have not been explicitly enabled/disabled.

Parameters:

feature String
The feature to check

Returns:

Boolean

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部