Skip to content

Commit

Permalink
fix($browser): Fixed issue: The loading bar still invisible after set…
Browse files Browse the repository at this point in the history
… the progress value
  • Loading branch information
akserg committed Apr 6, 2016
1 parent 8a634ad commit 3921cf1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bundles/ng2-slim-loading-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ System.registerDynamic("src/service", ["angular2/core", "angular2/src/facade/lan
},
set: function(value) {
if (lang_1.isPresent(value)) {
if (value > 0) {
this.visible = true;
}
this._progress = value;
this.emitEvent(new SlimLoadingBarEvent(SlimLoadingBarEventType.PROGRESS, this._progress));
}
Expand Down
2 changes: 1 addition & 1 deletion bundles/ng2-slim-loading-bar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ export class SlimLoadingBarService {

set progress(value:number) {
if (isPresent(value)) {
if (value > 0) {
this.visible = true;
}
this._progress = value;
this.emitEvent(new SlimLoadingBarEvent(SlimLoadingBarEventType.PROGRESS, this._progress));
}
Expand Down

0 comments on commit 3921cf1

Please sign in to comment.