How can I change the route.state using ng-click instead of a link applying ui-sref.
I've tried this:
<button ng-click="selectDir(file.fullPath)">set</button>
with
$scope.selectDir = function(location) {
options.storageLocation = location;
$route.current = 'recorder.options';
}
But it doesn't work. Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…