AngularJS 1.2


The new features




by Bob Bijvoet

naar beneden

Modular angular

Core will get slimmer.


Where to find the modules?

http://code.angularjs.org/1.2.0rc1/


var myApp = angular.module('MyApp',
['ngRouter']); 


 <script type="text/javascript" src="http://code.angularjs.org/1.2.0rc1/angular.min.js"></script>



NgBlur/ngfocus directives


It's in the core.


ng-focus="{expression}"

ng-blur="{expression}"


ngtouch directive


Include ngTouch module:

angular.module('app', ['ngTouch']);


ng-focus="{expression}"

ng-blur="{expression}"

More to come?

$router changes

Seperate module!


Support for optional parameters


Changes in wildcard matching



$animation


Forget everything you've learned.

1.2 does it different.



Class based animations


CSS3 transitions

CSS3 keyframes




ngShow/add and ngclass


ngrepeat/include and more






JavaScript Animations


Animation 'factory'

Better support for old browsers


Year of Moo website




Thanks!

angularjs-1.2

By Bob Bijvoet

angularjs-1.2

  • 1,378