Either restarting VS Code, updating angular language service as mentionened here,
but if that doesn't solve the issue and you have a workspace containing multiple different angular projects, try to make a clean workspace containing only v19 projects.