I am facing an issue with my AngularJS controllers. Whenever I switch from one page to another, all the scope values become empty. This is how I have defined my controllers:
var app = angular.module('name',[]);
app.controller('Ctrl1',function($scope){});
app.controller('Ctrl2',function($scope){});
While this code works fine within a single HTML file, I encounter problems when navigating to another HTML page as I am unable to access the $scope values in the controller.
Any assistance on resolving this issue would be highly appreciated.