Last Updated : 23 Jul, 2025
AngularJS is a free and open-source JavaScript framework that helps developers build modern web applications. It extends HTML with new attributes and it is perfect for single-page applications (SPAs).
AngularJS, developed by Google, has been important in web development since its inception in 2009. AngularJS excels at building SPAs. These are applications that load in the browser once and update content without needing to refresh the entire page, providing a smoother user experience.
AngularJS TutorialThis AngularJS tutorial is designed to learn AngularJS quickly and efficiently. You will start by learning the fundamentals of AngularJS, including directives, expressions, filters, modules, and controllers. After that, you will learn about a variety of other aspects of AngularJS, such as events, DOM, forms, input, validation, HTTP, and more.
Additionally, we also provide AngularJS interview questions to help you deepen your understanding of the framework and prepare for potential job opportunities.
AngularJS revolutionized front-end development by introducing a Model-View-Controller (MVC) architecture. This separation of concerns keeps your code clean, maintainable, and easier to test. Here's a breakdown:
AngularJS is an open-source web application framework, was initially developed in 2009 by Misko Hevery and Adam Abrons. It is now maintained by Google, and its latest version is 1.2.21.
AngularJS is a JavaScript framework written in JavaScript.
AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag:
<scriptHTML
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">
</script>
<!DOCTYPE html>
<html>
<head>
<script src=
"https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">
</script>
</head>
<body>
<div ng-app="">
<p>Input something in the input box:</p>
<p>Name : <input type="text"
ng-model="name"
placeholder="Enter name here"></p>
<h1>Hello {{name}}</h1>
</div>
</body>
</html>
Output:
AngularJS example Output Create Your First AngularJS ApplicationLet’s create a simple AngularJS application that displays a list of subjects. Follow these steps:
angular.module
.angular.module.controller
.ng-model
.ng-repeat
and ng-if
.AngularJS follows the Model-View-Controller (MVC) architectural pattern, which divides the application logic into three interconnected components:
One of AngularJS’s standout features is its two-way data binding. Changes in the user interface automatically update the underlying data model and vice versa. This simplifies data synchronization between the view and the model, reducing the need for manual manipulation.
3. DirectivesDirectives are markers in the DOM that instruct AngularJS to attach specific behavior to a DOM element or transform the DOM’s structure. They enhance HTML with new functionalities and enable the creation of reusable components. Common directives include ng-model
, ng-repeat
, and ng-if
.
AngularJS provides a set of built-in services that offer common functionalities, such as HTTP requests, routing, and more. Developers can also create custom services to encapsulate specific features and share them across different components.
5. Dependency InjectionDependency Injection (DI) is a design pattern used in AngularJS, allowing components to be loosely coupled. This enhances modularity and simplifies testing.
Advantages of AngularJSRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4