Professional Documents
Culture Documents
First you go to angularjs.org website click here to DOWNLOAD ANGULARJS button afetr open
the following popup.
Include AngularJS
The AngularJS MVC stands for (Model View Controller). This is a software design pattern used
in all modern web applications. The views are specified using HTML + AngularJS's own template
language. The models and controllers are specified via JavaScript objects and JavaScript
functions.
In the MVC pattern, the different aspects of the application are broken into components to
separate responsibilities. The Model contains the data and logic, the View contains the visual
layout and presentation is following :
Model :
o The AngularJS model is responsible for managing application data.
o It responds to the requests from view and to the instructions from controller to update
itself.
Controller :
o Speaking the concept of controller under MVC pattern applications. In angular,
controller is simply formed by javascript classes.
o The controller responds to user input and performs interactions on the data model
objects.
o The controller receives input, validates it, and then performs business operations that
modify the state of the data model.
View :
o The AngularJS view is the Document Object Model (DOM), as a web developer, this fact
will make you easier to understand angular view.
o To display the data from controller, you can put angular expression in your view.
o This expression binds data from model inside your controller.
o Since angular is two-way data binding the view will update automatically if there’s a
model changes from your controller.
2. ng-model : The ng-model directive binds the value of HTML controls (input, select,
textarea) to application data.
4. Expression: An expression is like JavaScript code which is usually wrapped inside
double curly braces such as {{ expression }}.
Syntax: {{expression}}
<div ng-app="">
...
...
</div>
<!DOCTYPE html>
<html>
<head>
<title>AngularJS First Application</title>
<script type="text/javascript" src="js/angular.min.js"></script>
</head>
<body>
<div ng-app="">
<label>Name : </label>
<input type="text" ng-model="name" placeholder="Your Name">
<h1>Hello <span ng-bind="name"></span>.</h1>
</div>
</body>
</html>
Features:
Cross Platform.
Progressive Web Apps.
Use modern web platform capabilities to deliver app-like experiences.
Speed and Performance.
Code Generation.
Productivity.
Templates.
Full Development Story.
Testing.
MVC
Data model biding
Write less code.