查询参数未在控制器中更新 [英] Query params not updating in controller
问题描述
使用内部版本v1.5.0-beta.4
Using build v1.5.0-beta.4
我的查询参数显示在params.queryParams对象的路由器中,但似乎没有更新它们控制器中的各个属性。无法判断这是错误还是行为正常。如果这符合预期,那么我需要设置什么标志才能获得所需的行为,例如在旧版本中?
My query params are showing up in the router in the params.queryParams object but do not seem to be updating their respective properties in the controller. Can't tell if this is a bug or behaving as expected. If this is behaving as expected, what flag do I need to set to get the desired behavior like in the older builds?
有人可以看看这个jsbin http://jsbin.com/tojamara/64/edit ,看看这是否是错误?
Could someone take a look at this jsbin http://jsbin.com/tojamara/64/edit and see if this is a bug or not?
如果我将构建更改为文档中使用的构建,则其行为将与预期的一样。参见
http://jsbin.com/tojamara/66/edit
If I change the build to the ones used in the documentation it behaves as expected. See http://jsbin.com/tojamara/66/edit
推荐答案
这是Ember版本,使用Canary版本(1.6 +)。
It's that version of Ember, use a canary build (1.6+).
这篇关于查询参数未在控制器中更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!