md-button.md-warn(ng-click="$ctrl.remove(); reload()" ng-hide="$ctrl.isNew") Delete
The delete button removes a file from a list, but it is not deleting the preview of the file. If the page is refreshed, the preview disappears, which is what I want. So I want the delete button to refresh the page as well.
ng-click is set to two functions as seen above.
But when 'Delete' is clicked, remove() occurs, but the page does not reload. Why is reload() not getting carried out? I tried the following as well:
md-button.md-warn(ng-click="$ctrl.remove(); $ctrl.reload()" ng-hide="$ctrl.isNew") Delete