Loading...

Interview Questions


What is AngularJS?


AngularJS is an open-source JavaScript framework maintained by Google for building dynamic web applications. It extends HTML attributes with Directives and binds data to HTML with Expressions.

What are the key features of AngularJS?


Two-way data binding, Directives, MVC architecture, Dependency Injection, Services, Routing, Templates, Filters, and Testing support.

Explain two-way data binding in AngularJS.


Two-way data binding in AngularJS means that any changes in the model are instantly reflected in the view, and vice versa, without the need for manual intervention.

What are AngularJS directives?


Directives are markers on DOM elements 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.

What is Dependency Injection in AngularJS?


Dependency Injection is a software design pattern in which components are given their dependencies instead of hard-coding them within the component. AngularJS has a built-in dependency injection subsystem.

What are AngularJS modules?


Modules in AngularJS are containers for different parts of an application like controllers, services, filters, directives, etc. They help in organizing and managing code.

Explain AngularJS expressions.


AngularJS expressions are JavaScript-like code snippets that are usually placed in bindings such as {{ expression }}. They are evaluated against the scope object and output dynamic data to the HTML.

What is the difference between AngularJS expressions and JavaScript expressions?


AngularJS expressions are similar to JavaScript expressions but have some differences like disallowing certain expressions for security reasons and supporting filters.

What is data binding in AngularJS?


Data binding is the automatic synchronization of data between the model and the view components. AngularJS supports two-way data binding, where changes in the model are instantly reflected in the view, and vice versa.

Explain AngularJS routing.


AngularJS routing allows you to build single-page applications by switching views without reloading the entire page. It uses the ngRoute module to define routes and map them to corresponding views and controllers.


Categories ( 117 )