25_Angular_Interview_Questions
25_Angular_Interview_Questions
Answer: Angular is a JavaScript UI binding framework that simplifies the process of binding views
Answer: AngularJS refers to versions 1.x, which use JavaScript, while Angular refers to versions 2
Answer: Directives are Angular syntax written in HTML to attach behaviors. Types include
Answer: Templates are HTML views of Angular components. They can be inline or in separate files,
Answer: Key components: Template (view), Component, Module, Binding, Directives, Service,
Dependency Injection.
Question 7: What is SPA?
Answer: SPA (Single Page Application) loads UI once and updates necessary sections without
Answer: Using Angular Routing, define a collection of URLs and their corresponding components,
Answer: Lazy Loading loads modules only when required, improving performance by dividing the
Answer: Services are used to share common functionality (e.g., logging, HTTP services) across
Answer: Dependency Injection is a design pattern where Angular provides dependencies to classes,
Answer: Using the providers array in @NgModule or @Component, specify which dependency to
Answer: ng serve builds the application in memory for development, while ng build compiles it to