To enable strict mode for a new Angular application, ensuring stricter type-checking and other stricter checks, you would use the ng new command with the ______ flag.
- #NAME?
- #NAME?
- #NAME?
- strict
To enable strict mode for a new Angular application, which enforces stricter type-checking and other stricter checks, you would use the --strict flag with the ng new command. This flag sets up the project with more rigorous TypeScript checks and helps catch errors at compile-time.
Loading...
Related Quiz
- You are working on a large enterprise application where state management becomes essential. Which library would you consider integrating with Angular for this purpose?
- When you have a deeply nested route structure, how would you handle shared route parameters or data between parent and child routes?
- You have a requirement to build a complex multi-step form with the ability to navigate between steps and validate each step individually. What approach would you take in Angular to handle this?
- You are developing an Angular application where a child component needs to notify its parent component about certain events. Which mechanism would you use?
- How can you implement a custom validator that checks if a password and its confirmation are the same in a reactive form?