this.addRoleFormGroup.dirty; //want to pass this property to jQuery on("hide.bs.modal", function())
this.addRoleFormGroup.dirty;
$("#addRoleModal").on("hide.bs.modal", function () {
alert('The modal is about to be hidden.');
$('#addRoleModal').modal('show');
});
}