File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v0.9.0
4+
5+ This release adds the more friendly SpinnerVisibilityService#show() && SpinnerVisibilityService#hide() methods as public API.
6+ The `` visibilitySubject `` introduced in v0.8.0 is now a `` ReplaySubject `` , and its getter returns now an observable.
7+
8+ See the [ Manually show and hide the spinner] ( https://github.com/mpalourdio/ng-http-loader#manually-show-and-hide-the-spinner ) section.
9+
310## v0.8.0
411
512This release adds the `` SpinnerVisibilityService `` , a simple injectable service that allows you to manually show/hide the spinner.
Original file line number Diff line number Diff line change @@ -172,11 +172,11 @@ import { SpinnerVisibilityService } from 'ng-http-loader/services/spinner-visibi
172172})
173173export class MyComponent {
174174
175- constructor (private visibilityService : SpinnerVisibilityService ) {
175+ constructor (private spinner : SpinnerVisibilityService ) {
176176 // show the spinner
177- visibilityService .show ();
177+ spinner .show ();
178178 // hide the spinner
179- visibilityService .hide ();
179+ spinner .hide ();
180180 }
181181}
182182```
Original file line number Diff line number Diff line change 11{
22 "name" : " ng-http-loader" ,
3- "version" : " 0.8 .0" ,
3+ "version" : " 0.9 .0" ,
44 "scripts" : {
55 "prepare-deploy" : " gulp inline-templates && gulp clean-dist && ngc -p tsconfig.ngc.json && gulp clean-tmp && gulp copy-all" ,
66 "test" : " ng test --watch false"
You can’t perform that action at this time.
0 commit comments