Emberjs: Conditional redirect in router

后端 未结 3 1738
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 11:20

Is there a way to have a conditional redirect in the Ember.js Router, without breaking internal consistency of the router?

3条回答
  •  生来不讨喜
    2020-12-06 11:59

    Depending on what you're trying to do, you may be looking for conditional transitions. This is covered in another stackoverflow question, the TLDR of which is to check this fiddle.

提交回复
热议问题