Angularjs Interview Question


Prev Tutorial Next Tutorial

Interview Question

Angularjs Interview Question for Freshers

What is AngularJS ?

AngularJS is a javascript framework used for creating single web page applications.

What are the key features of Angularjs ?

  • Scope
  • Controller
  • Model
  • View
  • Services
  • Data Binding
  • Directives
  • Filters
  • Testable

What is scope in Angularjs ?

scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events.

What is controller in Angularjs ?

In Angular, a Controller is a JavaScript constructor function that is used to augment the Angular Scope. When a Controller is attached to the DOM via the ng-controller directive, Angular will instantiate a new Controller object, using the specified Controller's constructor function.

What is data binding in Angularjs ?

Data-binding in Angular apps is the automatic synchronization of data between the model and view components.

What are the Advantages of using Angularjs

  • Two way data-binding
  • MVC pattern
  • Provides Static template and angular template
  • Can add custom directive
  • Provides REST full services
  • Provides form validations
  • Provides both client and server communication
  • Provides dependency injection
  • Applying Animations
  • Event Handlers

Read more......

Why called AngularJS ?

Because HTML has Angular brackets and "ng" sounds like "Angular".

AngularJS a library, framework, plugin or a browser extension?

AngularJS is the framework of JavaScript. AngularJS is 100% JavaScript, 100% client-side and compatible with both desktop and mobile browsers. So it's definitely not a plugin or some other native browser extension.

What are Directives?

At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS's HTML compiler ($compile) to attach a specified behavior to that DOM element or even transform the DOM element and its children.

Angular use the jQuery library?

Yes, Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.

Why is this project called "AngularJS" ?

Because HTML has Angular brackets and "ng" sounds like "Angular".

Which browsers support Angular ?

AngularJS mostly support all new web browser, following browsers supported by angularJS: Safari, Chrome, Firefox, Opera, IE8, IE9 and mobile browsers (Android, Chrome Mobile, iOS Safari).

What are limitations of Angularjs ?

  • Not Secure: It is a framework of JavaScript not a server side programming. Only server side programs provides security, server side authentication and authorization provides security for application.
  • Depends on User: If any user disable JavaScript in their own browser then nothing will be apply on your application related to JavaScript and AngularJS, Only basic Html page will display.

What is ng-init directive ?

The ng-init directive initialize application data same like variable initialization in C language, In c language you initialize int a=10;.

What is ng-model directive ?

The ng-model directive binds the value of HTML controls (input, select, textarea) to application data. The ng-model directive defines the variable to be used in AngularJS Application.

What is ng-repeat directive ?

The ng-repeat directive repeats an Html element. ng-repeat directive repeats a specific element. Read more......

What is expression in Ajgularjs ?

AngularJS Expressions used to binds application data to HTML. AngularJS expressions are written inside double curly braces such as : {{ expression }}.

What is filter in Angularjs ?

Filter are mainly used for modify the data. Filters can be added to expressions and directives using a pipe (|) character. For example uppercase filter are used for converting lower case text to upper case text. Read more......

What is Angularjs Include ?

Using AngularJS, we can include or embed Html pages within an Html page using ng-include directive. Read more......

How to define controller in angularjs ?

For define controller in AngularJS application we need ng-controller directive names. Read more......

How to handel event in Angularjs ?

AngularJS have its own event directive to handle DOM events like mouse clicks, moves, keyboard presses, change events etc. Read more......

MVC Architecture

What is MVC Architecture ?

MVC stand for Model View Controller. Model View Controller is a software design pattern for developing web application. It given software application into three interconnected parts, model, view and controller.

What is view in MVC ?

It is responsible for displaying output data to the user.

What is model in MVC ?

Model is responsible for maintaining data. Model retrieve data form database and also store data in database.

What is Contoller in MVC ?

Controller It is responsible for controls the interactions between the Model and View. Controllers can read data from a view, control user input, and send input data to the model. Read more......


Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements