Frameworks de Javascript. Angular
Salta a la navegació
Salta a la cerca
Contingut
Comparativa de Frameworks de Javascript
Què és Angular.js
Tutorials d'Angular.js
A classe seguirem el tutorial de w3schools. En el següent link tenim múltiples exemples, classificats per: Basics, Expressions, Modules, Directives, Models, Controllers, Scopes, Filters, XMLHttpRequest, Tables, MySQL, DOM, Events, Forms, API, CSS, Includes, Animations, Applications.
Angular examples:
Angular reference:
AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions.
AngularJS extends HTML with ng-directives.
- The ng-app directive defines an AngularJS application.
- The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.
- The ng-bind directive binds application data to the HTML view.
<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<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>
<p ng-bind="name"></p>
</div>
</body>
</html>
Les directives de AngularJS són atributs HTML amb el prefix ng.
Exemples de Angular JS
creat per Joan Quintana Compte, març 2016