【发布时间】:2020-08-07 07:16:22
【问题描述】:
onSave(payload) {
this.loading = true;
const addIdp = this.identityProviderService.save(payload);
this.autoUnsubscribe(addIdp.subscribe((data) => {
this.notificationsService.success(this.translateService.instant('idp.form.add-success'), '');
this.ref.close(data);
}, (error) => {
this.notificationsService.error(this.translateService.instant('idp.form.add-error'), '');
}, () => {
this.loading = false;
}));
}
identityProviderService.save 调用中有 httpClient
【问题讨论】:
-
你最后在哪里使用?
标签: angular rxjs observable httpclient