Angular - Change Detection
Consider this Angular component snippet:
What happens if
export function Counter() {
const [count, setCount] = useState(0);
function increment() {
setCount(count + 1);
}
return ``;
}What happens if
increment() is called but Angular's change detection does not run?