android - Ionic - $state.go works on livereload but not on device -


i experiencing weird issue following. on livereload or on browser, state.go function works expected. when run app on device (without livereload), app not apply transition new state.

this how call function:

<ion-nav-buttons side="right"><a class="button button-clear navbuttons" ng-click="setselectedforedit(selectedchannel)">dÜzenle</a></ion-nav-buttons>  

and controller:

.controller('channelctrl', function($scope, $rootscope, $stateparams, $state, firebasedataservice) {    $scope.setselectedforedit = function(channeluniqueid) {          $state.go('app.channel-edit', {'channelid':channeluniqueid});     };        })   

and route following:

.state('app.channel-edit', {         url: '/channels/:channelid/edit',         views: {             'menucontent': {                 templateurl: 'templates/channeledit.html',                 controller: 'channeleditctrl'             }         },         cache: false     }) 

anybody have experienced same before?

i had same problem. file of 1 of controllers started uppercase, changed lowercase , solved issue.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -