Angular Interview Questions and Answers Set  1

1. Why were client-side frameworks like Angular introduced?

Angular was designed to create dynamic web applications.It ensures building front-end-based apps without using any other plugins. To deliver the best web applications, Angular provides a lot of functionality and tools for organizing the work.

2.What is a Single Page Application (SPA)?

Single-page application(SPA) is a web application implementation.All the application’s function will be available in a single HTML document. It dynamically rewrites a current web page with new data.

3.What is the scope?

Angular application consist of:

=>View (HTML),
=> Model(Data),
=> Controller(JavaScript function).

Scope is the Model that is available for both the view and the controller. It act as the binding part.It is a JavaScript object with properties and methods.

4.What are annotations in Angular ?

An annotation is a comment added to provide explanation. It is normally added to articles or to literary works. Annotation is metadata added to the Angular code.

5.What is TypeScript?

Simply,TypeScript is a free,open source programming language. It is developed by Microsoft. TypeScript is a syntactical superset of JavaScript. It is recommended for its consistency. So It is easy to maintain and comfortable to interpret.

 

ANGULAR TRAINING
Weekend / Weekday Batch

 

6. Explain the Architecture overview of Angular.

Angular is a framework for building client applications in HTML and either JavaScript or a language like Type Script that compiles to JavaScript. The framework consists of several libraries, some of them core and some optional. Then you launch the app by bootstrapping the root module

7.Static and public in angular?

The static members can be defined by using the keyword static TypeScript includes the keywords public, protected, and private to control access to the members of a class i.e. properties or methods.

8.Difference between Promises and observable?

The observables and promises help us work with asynchronous functionality in JavaScript. Promises deal with one asynchronous event at a time, while observables handle a sequence of asynchronous events over a period of time.

9.TypeScript data type ?

Initially it was developed by Misko Hevery and Adam Abrons. Currently, it is being developed by Google.

10.What is ECMAScript?

Angular ECMAScript is a utility library which will help you write an AngularJS app using ES6’s class system. In addition, angular-ecmascript provides us with some very handy features, like auto-injection without using any pre-processors like ng-annotate.