This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpErrorResponse } from '@angular/common/http'; | |
import { Injectable } from '@angular/core'; | |
import { FormGroup } from '@angular/forms'; | |
import { Router } from '@angular/router'; | |
import { NzMessageService } from 'ng-zorro-antd/message'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class ErrorService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<nz-alert nzType="error" [nzMessage]="nonFieldErrors" *ngIf="non_field_errors.length > 0" nzShowIcon> | |
<ng-template #nonFieldErrors> | |
<nz-list> | |
<nz-list-item *ngFor="let error of non_field_errors">{{ error }}</nz-list-item> | |
</nz-list> | |
</ng-template> | |
</nz-alert> | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface IDirtyControl { | |
field: string, | |
type: string, | |
convertTo: string, | |
} |
OlderNewer