Friday, March 19, 2021

PART-5 INTERVIEW TYPE QUESTIONS

1. What are three different types of directives and explain them with example?Three three types of directives in Angular and these are :Structural Directive: Structural directives enable Angular developers to add, edit and remove elements in the DOM.Attribute Directive: Attribute directive enable Angular developers to define an attribute that when added to an element change the appearance of the element.Component Directive: This enables you to define directives that contain templates using a rich HTML-like Syntax.2. What is Refactoring?Refactoring...

PART-4 INTERVIEW TYPE QUESTIONS

 1. What is Angular routing ?Angular routing enables developers to build Single Page Applications with multiple views and allow navigation between these views.      <router-outlet>     </router-outlet><router-outlet  name="outlet1"> </router-outlet>2. What is Single page application?A single-page application is an app that works inside a browser and does not require page reloading during use. SPA requests the markup and data independently and renders pages straight in the browser.3. What...

Friday, March 12, 2021

PART-3 INTERVIEW TYPE QUESTIONS ( [ngModel], [(ngModel)], FormsModule ..... )

 1. What is camel case and pascal case?With camelCase, the first letter of the first word in the identifier is lower case, while the first letter of every subsequent word is uppercase. for eg: newMaheshIdentifier.And with PascalCase, the first letter of every word in the identifier is upper case. For eg: NewMaheshIdentifier.2. What are directives?Directives are custom HTML attributes which tell angular to change the style or behavior of the DOM elements.3. What is the use of ngModel and significance of [  ] and ( ) in ngModel?ngModel...

PART-2 INTERVIEW TYPE QUESTIONS (Dependencies DevDependencies, Component , Model, Module, View, Selector... )

1. Differentiate between dependencies and dev dependencies.DEPENDANCIES(1) Dependancies are installed on both :npm install from a directory that contains package.json.npm install $package on any other directory.(2) Dependancies are installed transitively: if A requires B, and B requires C, then C gets installed, otherwise, B could not work, and neither would A.(3) Dependencies are required to run.DEVDEPENDANCIES(1) DevDepandancies  are:also installed on npm install on...

Tuesday, March 2, 2021

PART-1 INTERVIEW TYPE QUESTIONS (ng serve , ng build , --prod ,CLI)

1. What is Angular CLI? The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell. It is installed using the  npm package manager :             npm install -g @angular/cli 2. The difference between npm install vs npm install –g? npm install without the -g installs the specified package to the package cache of the package in the current directory. This requires you to...