gpt4 book ai didi

ember.js - Ember 1.10.0 抛出 "Uncaught Error: Bound attributes are not yet supported in Ember.js"

转载 作者:行者123 更新时间:2023-12-02 06:08:54 27 4
gpt4 key购买 nike

我只是改变了这个:

  <div {{bind-attr class=":step category.isCurrent:active category.isBeforeCurrent:visited"}}>

对此:
<div class="step {{category.isCurrent:active}} {{category.isBeforeCurrent:visited}}">

现在得到:
Uncaught Error: Bound attributes are not yet supported in Ember.js
这是我正在使用的 bower.json:
{
"name": "proj",
"dependencies": {
"jquery": "^1.11.1",
"ember": "1.10.0",
"ember-data": "^1.0.0-beta.14.1",
"ember-resolver": "~0.1.11",
"loader.js": "ember-cli/loader.js#1.0.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.0.2",
"ember-qunit": "0.1.8",
"ember-qunit-notifications": "0.0.4",
"qunit": "~1.15.0"
}
}

我的包 json :
{
"name": "proj",
"version": "0.0.0",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember test"
},
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.0.0",
"ember-cli": "0.1.7",
"ember-cli-6to5": "0.2.1",
"ember-cli-content-security-policy": "0.3.0",
"ember-cli-dependency-checker": "0.0.7",
"ember-cli-htmlbars": "^0.6.0",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-less": "^1.1.0",
"ember-cli-qunit": "0.1.2",
"ember-data": "^1.0.0-beta.14.1",
"ember-export-application-global": "^1.0.0",
"express": "^4.8.5",
"glob": "^4.0.5"
}
}

我按照迁移指南中的步骤进行操作,所以不确定出了什么问题。总的来说,我确实喜欢这些新变化,但 future 是光明的。

最佳答案

属性绑定(bind)在 Ember 1.11 中,而不是 1.10。 blog post对于 1.10 版本,更多地讨论了这个即将推出的功能。

关于ember.js - Ember 1.10.0 抛出 "Uncaught Error: Bound attributes are not yet supported in Ember.js",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28479112/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com