Hi, I’m pretty new to ionic. Based on the default sidemenu template, I have created a small (test) app to add a movie and to retrieve a list of movies (via an asp.net mvc 5 web api 2 web service). In the sidemenu I can click on the link ‘list movies’ and all the movies are shown. In my menubar the sidemenu button is shown.
Now, when I add a new movie, I want to redirect the user back to the list of movies (on succes). The problem I’m facing is that when the list is shown, in my menubar the back button is shown instead of the sidemenu button. What I want is that the user only sees the side-menu button. This is what I have in my controller:
MoviesApp.controller('AddMovieCtrl', function($scope, $http, dataFactory, $state){
$scope.isEditable = function () {
return $scope.edit && $scope.edit.movie;
};
$scope.cancel = function () {
$scope.edit.movie = null;
};
$scope.movie = {};
$scope.save = function () {
alert($scope.movie.Title);
dataFactory.create($scope.movie).success(function (response) {
$scope.movie = null;
$state.go('app.movies'});
});
};
});
Thanks for your help.