Skip to content

Commit

Permalink
Merge pull request #4656 from abpframework/fix/expression-check-error
Browse files Browse the repository at this point in the history
Fix the "Expression has changed after it was checked" in LoaderBarComponent
  • Loading branch information
armanozak authored Jul 7, 2020
2 parents 746aa22 + ac62b8c commit c3fc1b9
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@ import { filter } from 'rxjs/operators';
styleUrls: ['./loader-bar.component.scss'],
})
export class LoaderBarComponent implements OnDestroy, OnInit {
protected _isLoading: boolean;

@Input()
containerClass = 'abp-loader-bar';
set isLoading(value: boolean) {
this._isLoading = value;
this.cdRef.detectChanges();
}
get isLoading(): boolean {
return this._isLoading;
}

@Input()
color = '#77b6ff';
containerClass = 'abp-loader-bar';

@Input()
isLoading = false;
color = '#77b6ff';

progressLevel = 0;

Expand Down

0 comments on commit c3fc1b9

Please sign in to comment.