问题
I use the UI Router
module in Angular (1). Typically it would look like
myApp.config(function($stateProvider) {
var helloState = {
name: 'hello',
url: '/hello',
templateUrl: 'http://www.example.com/partials/helloWorld'
}
}
Is it possible to reload this partial template forcefully during development where the source code keeps changing? Data changes can be mapped using two-way binding but that is not my scenario? I saw some answers related to the latter case. Is there something like $state.reload('state')
kind of functionality?
Is there a better way to test a partial from a development perspective?
来源:https://stackoverflow.com/questions/46490256/how-do-i-reload-an-angular-partial-for-testing-purpose