taiga-ui
taiga-ui copied to clipboard
🐞 - Taiga-UI + runOutsideAngular
Which @taiga-ui/* package(s) are the source of the bug?
core
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/taiga-starter-zp2kuq?file=src%2Fapp%2Fapp.component.ts
Description
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
testValue = 1;
constructor(private zone: NgZone, private cd: ChangeDetectorRef) {}
ngOnInit() {
this.zone.runOutsideAngular(() => {
setInterval(() => {
this.testValue = parseFloat(this.testValue as any) + 1;
this.cd.detectChanges();
}, 3000);
});
}
}
taiga-ui: https://stackblitz.com/edit/taiga-starter-zp2kuq?file=src%2Fapp%2Fapp.component.ts
material: https://stackblitz.com/edit/angular-mat-form-field-4orpeh?file=app%2Fform-field-prefix-suffix-example.ts
ng-zorroo: https://stackblitz.com/edit/ng-zorro-antd-start-r6b4qy
Angular version
latest
Taiga UI version
latest
Which browsers have you used?
- [X] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
Which operating systems have you used?
- [X] macOS
- [ ] Windows
- [ ] Linux
- [ ] iOS
- [ ] Android
https://github.com/Tinkoff/taiga-ui/issues/1196