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?
Source: AngularJS
from Angular Questions https://angularquestions.com/2017/09/29/how-do-i-reload-an-angular-partial-for-testing-purpose/
via @lzomedia #developer #freelance #web #lzomedia.com
No comments:
Post a Comment