@Injectable()
export class MyInterceptor implements HttpInterceptor {
intercept(
req: HttpRequest<any>,
next: HttpHandler
): Observable<HttpEvent<any>> {
//show a modal dialog to hold the request until user respond/close the dialog
if(ShowModalDialog())
在candeactive中实现角4材质对话框时所面临的问题
每当我从一个页面导航到另一个页面时,如果表单字段中有任何更改,我需要指示“有未保存的data.Do需要关闭”。这应该与确认窗口与确定和取消按钮。
在单击OK时,它应该导航到其他页面,否则它必须在同一页中。我已经尝试过candeactive,当我使用window.confirm时,它是完全工作的。
return window.confirm('There is unsaved data.Do you want to close?').
但我的要求是使用角材质对话框实现确认窗口。
问题发生在从afterClosd检索结果
我正在使用jquery完整的日历插件,并在ui对话框中遇到一些问题。现在,当我单击该事件时,它将在UI对话框中呈现事件和所有有关事件的详细信息,没有任何问题。但是,当我关闭此框时,除非刷新页面,否则所有其他jquery事件都会在页面上停止。我可以点击其他事件,但是页面上没有其他jquery事件.这是我的密码。
eventClick: function(event) {
if (event.url) {
$('#myDialog').load('full_calendar/ajax/show_event.php?EventID=' + ev