I am trying to refresh a page with success in an angularjs controller.
I tried using $ state but nothing happens. I am new to angular
$http({
method:'PUT',
url: '/api/resources,
data:dataObject,
headers: {'Content-Type': 'application/json'}
}).success(function(data, status, headers, config){
AppAlert.add('success', 'The appointment was updated successfully.', 5000);
$state.go('.', {}, {reload: true});
+3
source to share