Angular, Web Development, JavaScript, Typescript.
analysisState: WritableSignal<AnalysisState> = signal({ status: 'pending', }); constructor() { // mock change simulation setTimeout(() => { this.analysisState.set({ status: 'completed', result: 'xyz' }); }, 5000); } } @if (analysisState(); as analysisState) { @if (analysisState.status ===