AngularJS

AngularJS is not a library.

Templating

Data Binding

Dependency Injection

Modules

Views

Controllers

Services

Promises

Filters

Directives

Animations

Routing

Interaction with server

Testing

Localization and Internalization

Example Template

<!DOCTYPE html>
<html>

<head>
    <title>AngularJS Binding</title>
    <script type="text/javascript" 
     src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.min.js"></script>
</head>

<body>
    <div ng-app>
    </div>
</body>

</html>

Data Binding

<div ng-app>
    <h1>Binding</h1>
    <input type="text" ng-model="message">
    <p>{{ message }}</p>
    <p ng-bind="message + message"></p>
    <!-- ng-bind directive -->
    <p ng-bind="::message === 'hello'"></p>
    <!-- One time binding -->
    <p>{{ 1 + 2 }}</p>
</div>

AngularJS

By Alex Bardanov

AngularJS

  • 857