How do I reload an Angular partial for testing pur

2019-08-23 04:46发布

问题:

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?