Skip to content

Message not showing up if load is loader is enabled in ngOnInit of component #7

@CedricBojoly

Description

@CedricBojoly

If divALoading boolean is set to true in constructor the message of the spinner component doesn't show up

export class AppComponent {
  divALoading: boolean;
  divBLoading: boolean;

  constructor() {
    this.divALoading = true;
  }

  toggleDivALoading() {
    this.divALoading = !this.divALoading;
  }

  toggleDivBLoading() {
    this.divBLoading = !this.divBLoading;
  }
}

There should be a change detection for the message because the message value is set after the component is loaded.

i will do a pull request to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions