Come posso modificare il route.state utilizzando ng-clic anziché un collegamento che applica ui-sref.AngularJS cambia rotta con ng-clic utilizzando ui-router
Ho provato questo:
<button ng-click="selectDir(file.fullPath)">set</button>
con
$scope.selectDir = function(location) {
options.storageLocation = location;
$route.current = 'recorder.options';
}
Ma non funziona. Qualche idea?
ui-sref Vai a questa risposta: http://stackoverflow.com/a/21105057/2539811 –