我在Angular(1)中使用UI Router
模块。通常它看起来像
myApp.config(function($stateProvider) {
var helloState = {
name: 'hello',
url: '/hello',
templateUrl: 'http://www.example.com/partials/helloWorld'
}
}
是否有可能在源代码不断变化的开发过程中强行重新加载此部分模板?可以使用双向绑定映射数据更改,但这不是我的方案?我看到了一些与后一种情况有关的答案。有类似$state.reload('state')
类功能吗?
是否有更好的方法从开发角度测试部分?