multiple matching routes

后端 未结 5 1196
广开言路
广开言路 2021-01-31 06:22

I\'ve got a backbone.js application that defines two controllers, and the controllers both define route patterns which match the location.hash. I\'m having trouble getting both

5条回答
  •  失恋的感觉
    2021-01-31 06:41

    I think this is the simplest way of resolving it

    routes: { '': 'userGrid', 'users': 'userGrid', }

提交回复
热议问题