使用WEBrick,您可以导航到另一台设备/虚拟机上的应用程序,导航到your.ip.address.here:port
是否有可能与pow.cx做类似的事情?
isActive我在 setupController 中设置:
App.EntryRoute = Ember.Route.extend
setupController: (controller) ->
controller.set('isActive', true)
Run Code Online (Sandbox Code Playgroud)
我想在路线更改时将其删除。
做这个的最好方式是什么?移除控制器时是否有任何钩子?
编辑:看来我问错了。我想在模型更改时触发此操作,这意味着deactivate不起作用,因为它仅在您离开路线时才会更改。