angularjs - Ionic go to new view with same state -


i creating view of files in ionic app. explorer in computer, displays directories , files , can click on directories view other directories , files inside itself.

to achieve this, have state 'menu.files' (cause have menu navigation) takes path in parameter. so, part of code:

in view:

<div ng-repeat="file in files" style="..." ng-click="openpath(file)"> 

in controller:

$scope.openpath = function(path) {     console.log(path);     $state.transitionto("menu.files", {         path: $scope.path + "/" + newpath     }); } 

the problem:

the view reloading stays on same view...

i mean, in top-left there no back-arrow, previous view 'replaced'. want have same behavior of when make $stage.go() view, stack in navigation , user can go back.

thanks in advance !


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -