SlideShare a Scribd company logo
Quick Answers to
ANGULAR
Interview Questions
QUICK ANSWERS
Here are some answers to common Angular interview
questions. That's Angular 2+, not AngularJS.
They’re quick, not really extended and are not in any
particular order. Let’s get it on!
Answer:
A Web Client Side framework that runs on Typescript.
1) What's Angular?
Answer:
Modules, Components, Templates, Directives, Data Binding,
Services, Dependency Injection & Routing
2) Which are the Angular Building Blocks?
Answer:
Compiling from TypeScript to Javascript
3) What's transpiling?
Answer:
ngOnChanges
4) Which execution component triggers on data-bound
input updates?
Answer:
A Component is a web application small part. A Directive
adds functionality to a DOM element.
5) What's the difference between Components and
Directives?
Answer:
A Directive to pass data to a child component.
6) What's the @Input decorator?
Answer:
A Directive to set an event to which a parent component can
subscribe.
7) What's the @Output decorator?
Answer:
It's a Directive to put some html content inside DOM
element.
8) What's ng-content?
Answer:
A method in the Router service that allow us to navigate to
component in a Single-Page-Application.
9) What's router.navigate?
Answer:
A method to encapsulate styles in a component, and has
three types: Emulated to allow other's components styles,
Native to ignore other component's styles and None to allow
other's components visibility.
10) Wha'ts ViewEncapsulation?
Answer:
A shared clas, code that we can use across components.
11) What's a Service
Answer:
It's a pattern that allow us to provide dependencies during
runtime asking rather than creating. It's a way to instance
once and pass by reference in any other call.
12) What's Dependency Injection?
Answer:
It's a way to emulate navigation in SPA's.
13) What's Routing?
Answer:
It's a Directive that allow us to render the components at an
specific location.
14) What's a RouterOutlet?
Answer:
With (event)="method()" Directive to route the event to a TS
method.
15) How to handle Events?
Answer:
String Interpotation: The content between the double curly
brackets is evaluated and the result replaces the string.
16) What's {{}}?
Answer:
Property, Event, Two Way & String Interpolation.
17) Which are the DataBinding types?
Answer:
OnChange -> OnInit ->DoCheck -> AfterContentInit ->
AfterContentChecked -> AfterViewInit -> AfterViewChecked ->
OnDestroy.
18) What's the Life-cycle Hooks sequence?
Answer:
It's a dependencies & configuration file that contains
information about the current package, its dependencies
and their versions
19) What's package.json?
Answer:
A Single-Page-Application, an entire application in a single
html page using javascript to emulate navigation and to
content the whole app logic.
20) What's a SPA?
Answer:
It's a small part of the application, an HTML block able to be
bound to data.
21) What's a Component?
Answer:
It's a directive for two-way data binding.
22) What's NgModel?
Answer:
It's a method for subscription to an event, in order to trigger
a function when it happens.
23) What's subscribe?
Answer:
Observables are lazy, they wait till the events occurs and can
handle may subscriptions. Promises are eager, immediatly
executes and handle a single event.
24) What's the difference between Observables &
Promises?
Answer:
It's a Directive that allow us to bind data asynchronously in a
string interpolation, using a Promise or Observable directly
instead of a property or variable.
25) What's an AsyncPipe?
Answer:
It's using an API on the server side to validate credentials
and return a JWT.
26) What's authentication?
Answer:
It's validating access to components or specific data for a
specific user in the client side application.
27) What's authorization?
Answer:
It's compiling typescript and html files into Javascript on
build time.
28) What's AOT compilation?
Answer:
It's a library that uses the Store pattern to access global data
client side in the application.
29) What's Redux?
Answer:
Directives that allow us to format the result in a String
Interpolation.
30) What's pipes?
Answer:
ngClass loads a css class, ngStyle sets css styles.
31) What's the difference between ngClass and ngStyle?
Answer:
Functions that allow a building block to be configured before
to be used, adding metadata to the object.
32) What's a decorator?
Answer:
The equivalent to the arguments object in Javascript to
handle the arguments array.
33) What's a rest parameter?
Answer:
*ngFor="let item of collection"
34) What's the ngFor syntax?
Answer:
FormsModule
35) What's the ngModel module?
Answer:
ReactiveFormsModule
36) What's the ReactiveForms module?
Answer:
ReactiveFormsModule
36) What's the ReactiveForms module?
Answer:
e = new EventEmitter<type>();
37) How to define custom event?
Answer:
A Decorator to access HTML element alias in a component
38) What's @ViewChild?
Answer:
Template Driven uses two-way data binding, automatic track
of data while Reactive Forms is event based.
39) Difference between Template Driven Forms &
ReactiveForms?
Answer:
Validator are pre-build functions to handle form validations
like min, max, required, etc.
40) What's Validators?
Answer:
A Provider is a Service.
41) What's a Provider?
Answer:
It's a method that returns an NgModule and its provider
dependencies.
42) What's 'forRoot'?
Answer:
It's a way to not load every module at once, but on demand,
using 'loadChildren' instead of 'component' in routing.
43) What's Lazy Loading?
Answer:
A function's parameter that may not be specified when
calling the function.
44) What's an optional parameter?
Answer:
It's Javascript runtime environment, able to run Javascript
browserless, as an interpreter.
45) What's NodeJS?
Answer:
It's package manager for NodeJS, able to install and manage
dependencies for Javascript projects.
46) What's NPM?
Answer:
It's the module bundler used by angular.
47) What's Webpack?
Answer:
Create, Render, Create and Render childs, Check databoubd
changes & re-render & destroy.
48) What's Angular Component Life Cycle?
Answer:
It's an object that represents the data emitted by an event.
49) What's $event?
Answer:
A Decorator to describe a module.
50) What's NgModule?
Answer:
It's a hook, a function trigger for a specific moment, ngOnInit
happens after first display of data-bound properties and
setup of directives.
51) What's ngOnInit?
Answer:
Unit testing validate isolated pieces of code & E2E validate
an integrated set of components.
52) Difference between Unit & E2E testing
Answer:
On Unit testing.
53) When to use test doubles?
Answer:
Model-View-Controller pattern separates data, UI and logic in
different pieces of code, the controller populates data ad
pass it to the view for the user.
54) Explain MVC
Answer:
Reactive interface, faster integration, concern separation,
modular client server independent.
55) Which are the MVC benefits?
Answer:
template, templateUrl, selector, styles, stylesUrls, animation,
interpolation, inputs, outputs, providers.
56) Which are some component decorator options?
THANKS!
I am Luis Espino
I am here because I love to spread knowledge.
I wish this info will help you. You can find me at
@espino316. Checkout my projects at luis.espino.info
Ad

Recommended

Angular vs react
Angular vs react
Infinijith Technologies
 
Angular interview questions
Angular interview questions
Goa App
 
Angular Interview Questions & Answers
Angular Interview Questions & Answers
Ratnala Charan kumar
 
Angular tutorial
Angular tutorial
Rohit Gupta
 
Html5 Interview Questions & Answers
Html5 Interview Questions & Answers
Ratnala Charan kumar
 
Angular 2.0
Angular 2.0
Mallikarjuna G D
 
Angularj2.0
Angularj2.0
Mallikarjuna G D
 
Angular 2
Angular 2
Pramod Raghav
 
Java Concurrent
Java Concurrent
NexThoughts Technologies
 
Angular jS Introduction by Google
Angular jS Introduction by Google
ASG
 
React workshop
React workshop
Imran Sayed
 
React workshop presentation
React workshop presentation
Bojan Golubović
 
Introduction to ReactJS
Introduction to ReactJS
Knoldus Inc.
 
Spring Framework
Spring Framework
NexThoughts Technologies
 
Angular vs. AngularJS: A Complete Comparison Guide
Angular vs. AngularJS: A Complete Comparison Guide
Cloud Analogy
 
Google Guice
Google Guice
Andriy Andrunevchyn
 
Intro to React
Intro to React
Justin Reock
 
Introduction to Ibatis by Rohit
Introduction to Ibatis by Rohit
Rohit Prabhakar
 
Introduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace IT
namespaceit
 
Jug Guice Presentation
Jug Guice Presentation
Dmitry Buzdin
 
Spring MVC framework
Spring MVC framework
Mohit Gupta
 
Spring Framework Rohit
Spring Framework Rohit
Rohit Prabhakar
 
Modular JavaScript in an OSGi World - S Mak
Modular JavaScript in an OSGi World - S Mak
mfrancis
 
Android MvRx Framework 介紹
Android MvRx Framework 介紹
Kros Huang
 
Servlet programming
Servlet programming
Mallikarjuna G D
 
Spring framework core
Spring framework core
Taemon Piya-Lumyong
 
Angular vs. React
Angular vs. React
OPITZ CONSULTING Deutschland
 
Introduction to Spring Framework
Introduction to Spring Framework
ASG
 
Angular.js interview questions
Angular.js interview questions
codeandyou forums
 
50 common web developer interview questions [2020 updated] [www.full stack....
50 common web developer interview questions [2020 updated] [www.full stack....
Alex Ershov
 

More Related Content

What's hot (20)

Java Concurrent
Java Concurrent
NexThoughts Technologies
 
Angular jS Introduction by Google
Angular jS Introduction by Google
ASG
 
React workshop
React workshop
Imran Sayed
 
React workshop presentation
React workshop presentation
Bojan Golubović
 
Introduction to ReactJS
Introduction to ReactJS
Knoldus Inc.
 
Spring Framework
Spring Framework
NexThoughts Technologies
 
Angular vs. AngularJS: A Complete Comparison Guide
Angular vs. AngularJS: A Complete Comparison Guide
Cloud Analogy
 
Google Guice
Google Guice
Andriy Andrunevchyn
 
Intro to React
Intro to React
Justin Reock
 
Introduction to Ibatis by Rohit
Introduction to Ibatis by Rohit
Rohit Prabhakar
 
Introduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace IT
namespaceit
 
Jug Guice Presentation
Jug Guice Presentation
Dmitry Buzdin
 
Spring MVC framework
Spring MVC framework
Mohit Gupta
 
Spring Framework Rohit
Spring Framework Rohit
Rohit Prabhakar
 
Modular JavaScript in an OSGi World - S Mak
Modular JavaScript in an OSGi World - S Mak
mfrancis
 
Android MvRx Framework 介紹
Android MvRx Framework 介紹
Kros Huang
 
Servlet programming
Servlet programming
Mallikarjuna G D
 
Spring framework core
Spring framework core
Taemon Piya-Lumyong
 
Angular vs. React
Angular vs. React
OPITZ CONSULTING Deutschland
 
Introduction to Spring Framework
Introduction to Spring Framework
ASG
 
Angular jS Introduction by Google
Angular jS Introduction by Google
ASG
 
React workshop presentation
React workshop presentation
Bojan Golubović
 
Introduction to ReactJS
Introduction to ReactJS
Knoldus Inc.
 
Angular vs. AngularJS: A Complete Comparison Guide
Angular vs. AngularJS: A Complete Comparison Guide
Cloud Analogy
 
Introduction to Ibatis by Rohit
Introduction to Ibatis by Rohit
Rohit Prabhakar
 
Introduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace IT
namespaceit
 
Jug Guice Presentation
Jug Guice Presentation
Dmitry Buzdin
 
Spring MVC framework
Spring MVC framework
Mohit Gupta
 
Modular JavaScript in an OSGi World - S Mak
Modular JavaScript in an OSGi World - S Mak
mfrancis
 
Android MvRx Framework 介紹
Android MvRx Framework 介紹
Kros Huang
 
Introduction to Spring Framework
Introduction to Spring Framework
ASG
 

Similar to Quick answers to Angular2+ Interview Questions (20)

Angular.js interview questions
Angular.js interview questions
codeandyou forums
 
50 common web developer interview questions [2020 updated] [www.full stack....
50 common web developer interview questions [2020 updated] [www.full stack....
Alex Ershov
 
Best interview questions
Best interview questions
Thesis Scientist Private Limited
 
node.js interview questions and answers.
node.js interview questions and answers.
JyothiAmpally
 
Backend Development Bootcamp - Node [Online & Offline] In Bangla
Backend Development Bootcamp - Node [Online & Offline] In Bangla
Stack Learner
 
.Net questions
.Net questions
Center for Research in Information Technology
 
Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
GDSC UofT Mississauga
 
Angular js workshop
Angular js workshop
Rolands Krumbergs
 
Node.JS Interview Questions .pdf
Node.JS Interview Questions .pdf
SudhanshiBakre1
 
Reactive Programming on Android - RxAndroid - RxJava
Reactive Programming on Android - RxAndroid - RxJava
Ali Muzaffar
 
Dicoding Developer Coaching #31: Android | Menerapkan Clean Architecture di A...
Dicoding Developer Coaching #31: Android | Menerapkan Clean Architecture di A...
DicodingEvent
 
Top 40 Javascript Interview Questions and Answers.pdf
Top 40 Javascript Interview Questions and Answers.pdf
paldibya712
 
Django Frequently Asked Interview Questions
Django Frequently Asked Interview Questions
AshishMishra308598
 
Asp net interview_questions
Asp net interview_questions
Ghazi Anwar
 
Asp net interview_questions
Asp net interview_questions
Bilam
 
Beginning MEAN Stack
Beginning MEAN Stack
Rob Davarnia
 
Nt1310 Unit 3 Language Analysis
Nt1310 Unit 3 Language Analysis
Nicole Gomez
 
Framework engineering JCO 2011
Framework engineering JCO 2011
YoungSu Son
 
Gnizr Architecture (for developers)
Gnizr Architecture (for developers)
hchen1
 
JavaScript Interview Questions with Answers
JavaScript Interview Questions with Answers
AK Deep Knowledge
 
Angular.js interview questions
Angular.js interview questions
codeandyou forums
 
50 common web developer interview questions [2020 updated] [www.full stack....
50 common web developer interview questions [2020 updated] [www.full stack....
Alex Ershov
 
node.js interview questions and answers.
node.js interview questions and answers.
JyothiAmpally
 
Backend Development Bootcamp - Node [Online & Offline] In Bangla
Backend Development Bootcamp - Node [Online & Offline] In Bangla
Stack Learner
 
Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
GDSC UofT Mississauga
 
Node.JS Interview Questions .pdf
Node.JS Interview Questions .pdf
SudhanshiBakre1
 
Reactive Programming on Android - RxAndroid - RxJava
Reactive Programming on Android - RxAndroid - RxJava
Ali Muzaffar
 
Dicoding Developer Coaching #31: Android | Menerapkan Clean Architecture di A...
Dicoding Developer Coaching #31: Android | Menerapkan Clean Architecture di A...
DicodingEvent
 
Top 40 Javascript Interview Questions and Answers.pdf
Top 40 Javascript Interview Questions and Answers.pdf
paldibya712
 
Django Frequently Asked Interview Questions
Django Frequently Asked Interview Questions
AshishMishra308598
 
Asp net interview_questions
Asp net interview_questions
Ghazi Anwar
 
Asp net interview_questions
Asp net interview_questions
Bilam
 
Beginning MEAN Stack
Beginning MEAN Stack
Rob Davarnia
 
Nt1310 Unit 3 Language Analysis
Nt1310 Unit 3 Language Analysis
Nicole Gomez
 
Framework engineering JCO 2011
Framework engineering JCO 2011
YoungSu Son
 
Gnizr Architecture (for developers)
Gnizr Architecture (for developers)
hchen1
 
JavaScript Interview Questions with Answers
JavaScript Interview Questions with Answers
AK Deep Knowledge
 
Ad

More from Luis Martín Espino Rivera (7)

Counting valleys from Hackerrank solution explained
Counting valleys from Hackerrank solution explained
Luis Martín Espino Rivera
 
Los principios y la alegria de programar
Los principios y la alegria de programar
Luis Martín Espino Rivera
 
Lo que debes saber antes de iniciar un negocio por internet... Técnologicamen...
Lo que debes saber antes de iniciar un negocio por internet... Técnologicamen...
Luis Martín Espino Rivera
 
High Performance Organization Culture Proposal
High Performance Organization Culture Proposal
Luis Martín Espino Rivera
 
MeritocraciaYA Cultura Organizacional Ciudadana
MeritocraciaYA Cultura Organizacional Ciudadana
Luis Martín Espino Rivera
 
10 cosas que debes saber para contratar a un diseñador web
10 cosas que debes saber para contratar a un diseñador web
Luis Martín Espino Rivera
 
Exportar información de Sql Server a Excel
Exportar información de Sql Server a Excel
Luis Martín Espino Rivera
 
Counting valleys from Hackerrank solution explained
Counting valleys from Hackerrank solution explained
Luis Martín Espino Rivera
 
Lo que debes saber antes de iniciar un negocio por internet... Técnologicamen...
Lo que debes saber antes de iniciar un negocio por internet... Técnologicamen...
Luis Martín Espino Rivera
 
High Performance Organization Culture Proposal
High Performance Organization Culture Proposal
Luis Martín Espino Rivera
 
MeritocraciaYA Cultura Organizacional Ciudadana
MeritocraciaYA Cultura Organizacional Ciudadana
Luis Martín Espino Rivera
 
10 cosas que debes saber para contratar a un diseñador web
10 cosas que debes saber para contratar a un diseñador web
Luis Martín Espino Rivera
 
Ad

Recently uploaded (20)

Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0
Anchore
 
OpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native Barcelona
Imma Valls Bernaus
 
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Intelli grow
 
wAIred_RabobankIgniteSession_12062025.pptx
wAIred_RabobankIgniteSession_12062025.pptx
SimonedeGijt
 
FME as an Orchestration Tool - Peak of Data & AI 2025
FME as an Orchestration Tool - Peak of Data & AI 2025
Safe Software
 
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Tech Services
 
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Varsha Nayak
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Reimagining Software Development and DevOps with Agentic AI
Reimagining Software Development and DevOps with Agentic AI
Maxim Salnikov
 
Who will create the languages of the future?
Who will create the languages of the future?
Jordi Cabot
 
Migrating to Azure Cosmos DB the Right Way
Migrating to Azure Cosmos DB the Right Way
Alexander (Alex) Komyagin
 
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
 
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
How the US Navy Approaches DevSecOps with Raise 2.0
How the US Navy Approaches DevSecOps with Raise 2.0
Anchore
 
OpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native Barcelona
Imma Valls Bernaus
 
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Smart Financial Solutions: Money Lender Software, Daily Pigmy & Personal Loan...
Intelli grow
 
wAIred_RabobankIgniteSession_12062025.pptx
wAIred_RabobankIgniteSession_12062025.pptx
SimonedeGijt
 
FME as an Orchestration Tool - Peak of Data & AI 2025
FME as an Orchestration Tool - Peak of Data & AI 2025
Safe Software
 
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Underwriting Software Enhancing Accuracy and Efficiency
Insurance Tech Services
 
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Varsha Nayak
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Reimagining Software Development and DevOps with Agentic AI
Reimagining Software Development and DevOps with Agentic AI
Maxim Salnikov
 
Who will create the languages of the future?
Who will create the languages of the future?
Jordi Cabot
 
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
Milwaukee Marketo User Group June 2025 - Optimize and Enhance Efficiency - Sm...
BradBedford3
 

Quick answers to Angular2+ Interview Questions