Below is a function called register() that I am working with.
<form class="form-auth" ng-submit="register()">
This is how I have defined the register function:
$scope.register = function(){
$http.post('/auth/signup', $scope.user).success(function(data){
$rootScope.authenticated = true;
$rootScope.current_user = data.user.username;
$rootScope.path('!/');
});
The issue lies in the last line of code:
$rootScope.path('!/');
When trying to navigate to the specified path, it doesn't seem to work properly. I have tried different variations like ('/') and (#!/) but none have been successful.