Monday 24 January 2022

Angular

 

What is Angular?

It’s a reactive SPA. It updates the DOM without refreshing the page.

When was Angular 2 released?

2016

What is Angular version being used in SPOD Portal?

11

What is Node version being used in SPOD Portal?

14

Which angular version was skipped?

3

Angular 1 is also known as?

AngularJS

Angular 2 and higher is also knows as?

Angular

NPM stands for?

Node package manager

What is @types/nodes.

contains type definitions for Node.js. This package is used to load in all type definitions when using typescript in node. When you add other packages, you also have to add their typings if they do not include them by default.

How to install angular cli?

npm install -g @angular/cli

Angular cli create new project, it should not contain what?

spaces and word 'test'

Angular-CLI command to create new project?

ng new <project-name>

How to run angular project?

ng serve

On which port is it run by default?

4200

How to bind input text to variable?

<input type="text" [(ngModel)]= "name">

{{name}}

Which module needs to be installed to use ngModel?

import { FormsModule } from '@angular/forms';

and add it to imports (in file app.module.ts)