You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I create a two (or more) page survey, change detection is left broken on survey completion. In this example, I show a results page on survey completion. The button on that page will not work unless I manually trigger change detection.
<p>This button should show some extra text - but change detection doesn't trigger.</p>
<button (click)="showExtraText = true">Show extra text</button>
<p *ngIf="showExtraText">Extra text</p>
results.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-results',
templateUrl: './results.component.html',
})
export class ResultsComponent {
public showExtraText = false;
}
```
The text was updated successfully, but these errors were encountered:
If I create a two (or more) page survey, change detection is left broken on survey completion. In this example, I show a results page on survey completion. The button on that page will not work unless I manually trigger change detection.
Steps:
app.component.html
app.component.ts
results.component.html
results.component.ts
The text was updated successfully, but these errors were encountered: