AngularJS
55.9K views | +6 today
Follow
AngularJS
Ressources about AngularJS, single page application.
Curated by William delmas
Your new post is loading...
Your new post is loading...
Scooped by William delmas
Scoop.it!

Migrating directives to Angular 2

Migrating directives to Angular 2 | AngularJS | Scoop.it

Angular 2 it is just around the corner and people are still afraid because Angular 2 changes too much and it will hard to migrate. That is not true at all, in fact you will see how easy is Angular 2by highlighting the semantic shift between those two.

Let’s migrate a directive from Angular 1 to Angular 2. I love accordions, everybody love accordions! Let’s migrate ui-bootstrap accordion to Angular 2. I can’t assume that you’re familiar with it, so we are code both at the same time, explaining the differences along the way. I highly recommend you to, at least, replicate yourself the Angular 2 one.



more...
No comment yet.
Scooped by William delmas
Scoop.it!

AngularJS: use $timeout, not setTimeout

AngularJS: use $timeout, not setTimeout | AngularJS | Scoop.it

There are some cases where one needs to perform some sort of timeout operation and we frequently achieve this using JavaScript's setTimeout() function.

However, if we use setTimeout() in an AngularJS application we also need to use$scope.$apply() to ensure that any changes to the scope will be reflected elsewhere (i.e. data-bound in a view).

more...
No comment yet.
Scooped by William delmas
Scoop.it!

Time Saving AngularJS Tips

Time Saving AngularJS Tips | AngularJS | Scoop.it


AngularJS is a powerful tool for creating dynamic web pages, but as with any tool it can make things more complicated and unwieldy when used incorrectly. Below are some tips for those looking to improve the performance or the stability of their AngularJS website. Some of these tips will save memory for your application, resulting in a smaller footprint, while others will focus on the development process – allowing for quicker identification of errors that would otherwise emerge at the most inopportune time.

more...