Angular - State Management
What will be the output of this Angular component code snippet that manages state locally without NgRx?
After clicking the button once, what is displayed?
export class ToggleComponent {
isOn = false;
toggle() {
this.isOn = !this.isOn;
}
}{{ isOn ? 'ON' : 'OFF' }}
After clicking the button once, what is displayed?
