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?