• 1 What is AngularJS?
• 2 What is Angular and what are the various
versions of Angular?
• 3 Why was version 3 skipped?
•
4 Why we need Angular?
•
5 What is the problem in Angular JS so we are using Angular?
•
6 Which language we can use with Angular for Component creation?
•
7 What is need of TypeScript in Angular?
•
8 Can I use another language except TypeScript for Angular?
•
9 What is Angular CLI?
•
10 Why we are using Angular CLI while we have another method for Angular
application creation?
•
11 What is the difference between various version of Angular?
•
12 What are the prerequisites for Angular?
•
13 How can we check the version of Angular?
•
14 What are the best IDE for Angular?
•
15 How can we run two Angular project simultaneously?
•
16 What is bootstrapping in Angular? Is it possible to start Angular in any
other way rather than appmodule? If yes then how?
•
17 How does an Angular application get start?
•
18 What is the Architecture Overview of Angular?
•
19 What is webpack?
•
20 We cannot reload our Angular application after changing in code It
automatically changes this code How?
•
21 Which files bundled and injected in indexhtml at runtime by webpack?
•
22 Can we create the Angular application without Angular CLI ?
•
23 What is npm and what is the need for Angular application?
•
24 How Webpack is different than SystemJS?
•
25 What is the difference between AOT and JIT?
•
26 What is transpilation concept of Angular?
•
27 Can we add more than one component in bootstrap in @NgModule?
Command based
•
28 How can we run our Angular project? Which is the default port used by
Angular?
•
29 What is the difference between ng serve and ng serve –open?
•
30 CLI Commands
Folder Structure
• 31 What is the purpose of maints file?
• 32 What is the role of packagejson file?
• 33 How packagejson file different from package-lockjson
file?
• 34 What is the role of tsconfigjson file?
• 35 What is the role of Angular-clijson file?
• 36 What is the use of “assets” folder in Angular?
Data Binding
• 37 What is data binding in Angular?
• 38 How many types of binding supported by Angular?
• 39 What is Interpolation? Give an example
• 40 What is Property binding? Where you can implement
property binding?
• 41 How many ways you can achieve property binding? What is
the benefit of using property binding?
• 42 When we used the Property binding and when we use
Interpolation?
• 43 What is Class binding? Give an example
• 44 What is Style binding? Give an example
• 45 What is Attribute binding? What is the benefit of using
it
• 46 What is Event binding? Give an example
• 47 Where you can implement event binding?
• 48 Name some common events that you can use for event
binding?
• 49 What is Two way binding? Give an example
• 50 What is template reference variable?
• 51 How many ways we can create template reference variable?
• 52 Can we use template reference variable using select
(combo box) If yes, then how?
• 53 How Angular ensure about content security at the time of
binding?
• 54 What is ngModel? or What is the role of ngModel?
• 55 Which binding we will use for dynamic css?
Components
• 56 What is component in Angular ?
• 57 How can we create a component?
• 58 Component is directive or not?
• 59 What is component decorator?
• 60 What are the different properties of a component object?
• 61 What is the mandatory property of @Component() decorator
function?
• 62 What is ViewEncapsulation?
• 63 What is changeDetection Property?
• 64 What is the difference between templeteUrl and template?
• 65 What is the difference between styleUrl and style?
•66 What is the difference between providers present in component and present in
appmodulets file?
• 67 What is Dynamic Component?
• 68 What is the use of ComponentFactoryResolver Service?
• 69 Give an example of Dynamic Component?
• 70 What is nested component?
• 71 What is the role of selector?
• 72 What is entry Component?
• 73 What is component hook lifecycle?
• 74 If there is nested component (parent and child) then
order of lifecycle hook is same or different?
• 75 What is the difference between @ViewChild and
@ViewChildren?
• 76 What is the difference between @ContentChild and
@ContentChildren?
• 77 What is the difference between ngDoCheck and ngOnChange?
• 78 How can we pass data from component to component?
• 79 How can we pass data from parent component to child
component using @Input
• 80 How can we pass data from child component to parent
component using @Output
• 81 What is Event Emitter?
Directives
• 82What is directives?
• 83 How many types of directives supported by Angular?
• 84 What is @Directive decorator?
• 85 Can we create constructor in our directive If yes then
how
• 86 What is Component directive Give an example
• 87 What is structural directive
• 88 Name some structural directives provided by Angular
• 89 What is the difference between ngIf and hidden?
• 90 How can we use “then” and “else” keywords with *ngIf
directive? Explain with an example
• 91 What are the keywords that we used at the time of
ngSwitchCase and what is the role of that keywords?
• 92 What is *ngFor ? and what are the exported values of
ngFor directive?
• 93 What is the difference between ngFor and ngForOf?
• 94 Why “*” is prefix with structural directive? Can we use
structural directive without using *?
• 95 How many structural directives can we implement on a
single element?
• 96 How can list items be tracked by default?
• 97 Can we provide our own mechanism for tracking the
elements? If yes, then how?
• 98 What are attribute directives? Give an example
• 99 What is the difference between attribute directive and
component directive?
• 100 What is ng-template?
• 101 What is Host Listner
Pipes
• 104 What is pipes and how we can use in Angular ?
• 105 Name some built-in pipe provided by the Angular
• 106 Can I create custom pipe in Angular?
• 107 What is Chaining pipe?
• 108 What is @Pipe Decorator?
• 109 How many types of Pipes support by Angular?
• 110 How can you define or set your pipe as pure or impure?
• 111 Can I create any pipe in Angular if yes then How?
• 112 What is an AsyncPipe in Angular?
Services
• 113 What is services?
• 114 HTTP Services?
• 115 What are the different HTTP Verbs supported by Angular
• 116 What are the difference between Patch() and Put()?
• 117 Why we are using services for transfer the data while
we have @Input and @Output?
• 118 How we can send the value from one component to another
component using service and their has not relation of parent and child?
• 119 What is providers?
• 120 What is Dependency Injection (DI) ?
• 121 Explain about @Injectable?
• 122 How many services we can add into Providers ?
• 123 If we have imported the service in the appmodulets and
then using the service then it will give error or run successfully IF error
then which type of error?
• 124 How many decorator has in Angular ?
• 125 What is backtick and how we are using in Angular?
• 126 What is DOM Shadowing ?
• 127 If we send any number value from child to parent
component then the emitter will number or string?
Dependency injection
• 128 What is Dependency Injection?
• 129 What is RXJS?
• 130 What is the difference between promises and observable
?
• 131 What is subscribers ?
• 132 How we can handle the error in Angular?
Routing
• 133 What is Routing in Angular?
• 134 How can you define routing in Angular?
• 135 What is a RouterOutlet?
• 136 What is Router links?
• 137 What is Router State?
• 138 What are Router events?
• 139 What is Wildcard route?
• 140 What is pathMatch property in routing?
• 141 How can we pass parameter in Routing?
• 142 What are the guard interfaces supported by router?
• 143 Difference between [routerLink] and routerLink?
Form
• 144 What is Form and how many strategies we have for
develop the form
• 145 What is Template driven and reactive form and why we
are using in Angular?
• 146 Which one the steps which we are using to build a form
with template driven ?
• 147 When we will use the form using Template driven, Which
module we have to add and where ?
• 148 How many ways by which we can add form validation?
• 149 How we will use Template-Driven Form Validation ?
• 150 Why we are checking dirty and touched?
• 151 What is Reactive Forms?
• 152 When we will use the form using Reactive, which module
we have to add and where?
• 153 What is Dynamic Form and how we can implement it in
Angular application?
• 154 Which classes we are using for show with form according
to status of form:
Testing Based
• 155 What is unit testing?
• 156 What is the need of Karma and jasmine in Angular?
• 157 How we can use Karma and Jasmine in Angular in Angular
for testing?
• 158 What is the need of ng test ?
• 159 What is the need of testts in Angular?
• 160 What is test bed?
• 161 We have extension spects in Angular application what is
use if it?
Angular Interview Questions
Reviewed by Ashwani
on
August 21, 2019
Rating:

No comments:
Post a Comment