- Question no: 1 :- Whats the use of Angular ?
Angular is an open-source, JavaScript framework written in TypeScript. Google maintains it, and its primary purpose is to develop single-page applications. As a framework, Angular has clear advantages while also providing a standard structure for developers to work with
- Question no: 2 :- What are directives in Angular ?
Directives are classes that add additional behavior to elements in your Angular applications.
- Question no: 3 :- Explain the different types of Angular directives ?
There are 3 types of directive in Angular given bellow:
Directive Types |
Details |
Components |
Used with a template.This type of directive is the most common directive type. |
Attribute directives |
Change the appearance or behavior of an element, component, or another directive. |
Structural directives |
Change the DOM layout by adding and removing DOM elements. |
- Question no: 4 :- Explain the importance of NPM and Node_Modules folder ?
NPM is a node package manager.
It helps with installing various packages and resolving their various dependencies.
It greatly helps with your Node development.
NPM helps you install the various modules you need for your web development and not just given you a whole bunch of features you might never need.
and all the modules store in Node_Modules folder.
- Question no: 5 :- Explain the importance of Package.json file in Angular ?
package. json file locates in project root and contains information about your web application.
The main purpose of the file comes from its name package, so it'll contain the information about npm packages installed for the project.
- Question no: 6 :- What is typescript and why do we need it ?
TypeScript is a superset of JavaScript which primarily provides optional static typing, classes and interfaces.
One of the big benefits is to enable IDEs to provide a richer environment for spotting common errors as you type the code.
- Question no: 7 :- Explain importance of Angular CLI ?
Angular CLI stands for Angular Command Line Interface. As the name implies, it is a command line tool for creating angular apps.
It is recommended to use angular cli for creating angular apps as you don't need to spend time installing and configuring
all the required dependencies and wiring everything together.
- Question no: 8 :- Explain the importance of Component and Modules ?
Component is made of 3 component: Template, class and Metadata.
The data flow in between template and model is managed from component.
In Angular, a module is a mechanism to group components, directives, pipes and services that are related,
in such a way that can be combined with other modules to create an application.
- Question no: 9 :- What is a decorator in Angular ?
In AngularJS, decorators are functions that allow a service, directive, or filter to be modified before it is used.
There are four main types of angular decorators:
Class decorators, such as @Component and @NgModule
Property decorators for properties inside classes, such as @Input and @Output
Method decorators for methods inside classes, such as @HostListener
Parameter decorators for parameters inside class constructors, such as @Inject
- Question no: 10 :- What are Annotationa or MetaData ?
Although Annotations and Decorators both share the same @ symbol in Angular, they both are different language features.
Annotations: These are hard-coded language feature. Annotations are only metadata set on the class that is used to reflect the metadata library.
- Question no: 11 :- What is a template ?
A template is a form of HTML that tells Angular how to render the component.
Views are typically organized hierarchically, allowing you to modify or show and hide entire UI sections or pages as a unit.
The template immediately associated with a component defines that component's host view.
- Question no: 12 :- Explain the four types of Data bindings in Angular ?
- Question no: 13 :- Explain architecture of Angular ?
- Question no: 14 :- What is SPA in Angular ?
Single page application.
- Question no: 15 :- How to implement SPA in Angular ?
We can implement SPA using Angular routing.
- Question no: 16 :- How to implement routing in Angular ?
There are three fundamental building blocks to creating a route. Import the AppRoutingModule into AppModule and add it to the imports array.
The Angular CLI performs this step for you.
1. Import RouterModule and Routes into your routing module. ...
2. Define your routes in your Routes array. ...
3. Add your routes to your application.
- Question no: 17 :- Explain Lazy Loading ?
- Question no: 18 :- How to implement Lazy Loading in Angular ?
- Question no: 19 :- Define Services ?
- Question no: 20 :- What is Depedency Injection ?
- Question no: 21 :- How to implement Depedency Injection ?
- Question no: 23 :- Whats the benefit of Depedency Injection ?
- Question no: 24 :- Differentiate between ng serve and ng build ?
- Question no: 25 :- Explain the –prod parameter in ng build ?
- Questions No:- 26 :- Explain ViewChild and ViewChildren?
- Questions No:- 27 :- Why do we need Template reference variables?
- Questions No:- 28 :- What is ContentProjection?
- Questions No:- 29 :- Explain Content projection Slot?
- Questions No:- 30 :- What is ContentChild and ContentChildren?
- Questions No:- 31 :- ViewChild vs ViewChildren vs ContentChild vs ContentrChildren?
- Questions No:- 32 :- Explain the importance of Component life cycle ?
- Questions No:- 33 :- Explain events and sequence of component life cycle ?
- Questions No:- 34 :- Constructor vs ngOnInit() ?
- Questions No:- 35 :- How to make HTTP calls using Angular ?
- Questions No:- 36 :- What is the need of Subscribe function ?
- Questions No:- 37 :- How to handle errors when HTTP fails ?
- Questions No:- 38 :- How to pass data between components ?
- Questions No:- 39 :- Explain importance of input, output & event emitters ?
- Questions No:- 40 :- How to pass during routing ?
- Questions No:- 41 :- Is it a good practice to pass data using services ?
- Question no: 42:- What is the need of Angular Pipes?
- Question no: 43:- Can you name some built-in Angular Pipes?
- Question no: 44:- How to create Custom pipes in Angular?
- Question no: 45 :- Whats the full form of RxJs?
- Question no: 46 :- What is the purpose of RxJs?
- Question no: 47 :- What are observables and observers?
- Question no: 48 :- Explain the use of Subscribe with sample code.
- Question no: 49 :- How to unsbscribe in RxJs?
- Question no: 50 :- Explain concept of operators with sample code.
- Question no: 51 :- How to install RxJs?
- Question no: 52 :- Differentiate between promise and RxJs?
- Question no: 53 :- In Angular where have you used RxJs?
- Question no: 54 :- Which operators have you used from RxJs?
- Question no: 55 :- What is Push/reactive vs Pull/Imperative?
- Question no: 56 :- What are interceptors in Angular?
- Question no: 57 :- How to implement interceptors?
- Question no: 58 :- GIve some use of Interceptors?
- Question no: 59 :- Can we provide multi-interceptors?
-
Question no: 60 :- How the lifecycle works in Angular