How can I refresh the injected template in angular with a button, because I tried to do this:
$scope.refreshData = function() {
console.log("Trying to refresh...");
$state.go($state.current, {}, {reload: true});
}
When this icon gets clicked:
<i class="fa fa-refresh pull-right" aria-hidden="true" ng-click="refreshData();"></i>
But the problem is, that the entire page gets refreshed, tbh I'm still learning angularJs.
Thanks.