Napster2210 / ngx-spinner

A library for loading spinner for Angular 4 - 17.
https://napster2210.github.io/ngx-spinner/
MIT License
823 stars 138 forks source link

not working show() in angular 14 #247

Closed Gil9091e10 closed 1 year ago

Gil9091e10 commented 1 year ago

I have configured ngx-spinner as described in the guide, but when I add the service to the component and call the show() method, the spinner is not displayed

In my component

  constructor(
    private accountService: AccountService,
    private loginService: LoginService,
    private router: Router,
    private spinner: NgxSpinnerService
  ) {}

  ngOnInit(): void {
    // if already authenticated then navigate to home page
    this.spinner.show();
  }

in my root html

<cvf-page-ribbon></cvf-page-ribbon>

<div>
  <router-outlet name="navbar"></router-outlet>
</div>

<div class="container-fluid">
  <div class="card jh-card">
    <router-outlet></router-outlet>
  </div>

  <cvf-footer></cvf-footer>
</div>
<ngx-spinner></ngx-spinner>

Any ideas why the spinner is not displayed I use version 14.0.0 as indicated in the guide

Napster2210 commented 1 year ago

@Gil9091e10 @dwlrathod @wcroteau Please refer #257 and latest version v16 is now available!