Using jQuery I can do something like this:
$('#submitButton').on('click', function(event) {
event.preventDefault();
var result = confirm('Are you sure?');
if (result) {
$('#submitForm').submit();
}
});
Before submit I need confirmation from user and then post data to server with reload (redirect) page. In what way can I do this in Angular?