Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nz-steps] Data assigned asynchronously cannot be rendered #3193

Closed
giscafer opened this issue Mar 30, 2019 · 1 comment · Fixed by #3194
Closed

[nz-steps] Data assigned asynchronously cannot be rendered #3193

giscafer opened this issue Mar 30, 2019 · 1 comment · Fixed by #3194

Comments

@giscafer
Copy link
Contributor

giscafer commented Mar 30, 2019

Data assigned asynchronously cannot be rendered,[nzCurrent]="1" nzProgressDot did not work.

demo:
https://stackblitz.com/edit/angular-ekt6kx

@Component({
  selector: 'nz-demo-steps-progress-dot',
  template: `
    <nz-steps [nzCurrent]="1" nzProgressDot>
      <nz-step nzTitle="{{item.title}}" nzDescription="{{item.description}}" *ngFor="let item of steps"></nz-step>
    </nz-steps>
  `
})
export class NzDemoStepsProgressDotComponent implements OnInit {
  steps = [];
  ngOnInit(): void {
    setTimeout(() => {
      this.steps = [
        {
          title: 'Finished1',
          description: 'description1'
        },
        {
          title: 'Finished2',
          description: 'description2'
        },
        {
          title: 'Finished3',
          description: 'description3'
        }
      ];
      
    }, 1000);
    /*  this.steps = [
        {
          title: 'Finished1',
          description: 'description1'
        },
        {
          title: 'Finished2',
          description: 'description2'
        },
        {
          title: 'Finished3',
          description: 'description3'
        }
      ]; */

  }

}

Version

Latest

Environment

Chrome

@giscafer giscafer changed the title [ng-steps] Data assigned asynchronously cannot be rendered [nz-steps] Data assigned asynchronously cannot be rendered Mar 30, 2019
@zomixi
Copy link

zomixi commented Mar 30, 2019

QQ截图20190330130744

You can do hack by modifying these properties,Hah.

like this:
https://angular-ekt6kx-rdiu5n.stackblitz.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants