$watch how the $apply runs a $digest
UPDATE: This post is meant for beginners, for those that just started to learn Angular and want to know how data-binding works. If you already know how to use Angular properly, I highly suggest you go to the source code instead. Angular users want to know how data-binding works. There is a lot of vocabulary around this: $watch, $apply, $digest, dirty-checking… What are they and how do they work? Here I want to address all those questions, which are well addressed in the documentation, but I want to glue some pieces together to address everything in here, but keep in mind that I want to do that in a simple way. Let’s start from the beginning. The browser events-loop and the Angular.js extension Our browser is waiting for events, for example the user interactions. Angular extends this events-loop creating something called angular context (remember this, it is an important concept). The $watch list Every time you bind something in the UI you insert a $watch in a $watch list. File: index.html
Learn AngularJS this Weekend
Get ready to learn AngularJS - Photo Credit: Nomadic Lass AngularJS has a reputation for a steep learning curve. It’s definitely complex, but follows the 80/20 rule. 20% of the features are what you will use 80% of the time. If you are new to AngularJS and have a weekend to study, there are some very high quality resources that will let you start Monday with a strong working knowledge of AngularJS. Already know AngularJS? The Official Tutorial ~4hrs Start with the official tutorial. The official tutorial is very well put together. Don’t use the angular-seed to start your real projects! Kickass (free!) You’ve done the tutorial, and should have a good grasp of the basics. All of the videos are great, but the series on directives is extra fantastic. Watch them all and take some notes. ahhhhhhh Learning AngularJS is refreshing - Photo Credit: chotda That will take you through Saturday evening, and you deserve a rest. Things get real with angular-app ~4hrs Sunday morning. Need some ideas? P.S.
Developer Guide: Developer Guide
There was an error loading this resource. Please try again later. On this page, you will find a list of official AngularJS resources on various topics. Just starting out with AngularJS? Ready to find out more about AngularJS? Core Concepts Templates In AngularJS applications, you move the job of filling page templates with data from the server to the client. Application Structure Other Features Testing Community Resources We have set up a guide to many resources provided by the community, where you can find lots of additional information and material on these topics, a list of complimentary libraries, and much more. External AngularJS resources Getting Help The recipe for getting help on your unique issue is to create an example that could work (even if it doesn't) in a shareable example on Plunker, JSFiddle, or similar site and then post to one of the following: Official Communications Official announcements, news and releases are posted to our blog, G+ and Twitter: Contributing to AngularJS
egghead.io - Learn AngularJS with Tutorial Videos & Training @eggheadio
Why does {{ isNan(x) }} not work in angularJS?
Things I Wish I Were Told About Angular.js
Recently I have worked on a project using Angular.js. As of writing this post, it’s a medium sized app (~10 modules, ~20 controllers, ~5 services and ~10 directives) with quite decent test coverage. When I look back, I find myself learning much more about Angular.js than before. It’s not a smooth ride: I’ve gone through lots of refactor and rewrite. And there are lots of things I wish I were told before I started to work on Angular.js Heads up! About Learning Curve Angular.js has a very different learning curve from Backbone.js. However, Angular.js is very different. The problem is when you dive into Angular.js and start to write some serious app, the learning curve suddenly becomes very steep and its documentations are either incomplete or cumbersome. Understand Modules Before You Start Angular.js does not force you to use its module system. So I had to stop and refactor my code. So if you do not want to go through the refactor, learn and plan your modules before you start. About Testing
AngularJS Tutorial
AngularJS Tutorial | Jenkov.com
AngularJS is a JavaScript framework that is intended to make it easier to implement RIA web applications. When I first started learning AngularJS there were not that many detailed AngularJS tutorials available. That is why I decided to write my own AngularJS tutorial. AngularJS is created by Google, which is probably one of the bigger causes of its success. You can find the AngularJS project here: AngularJS is based on the MVC pattern (Model View Control). If you don't know the difference between declarative and imperative programming, don't worry. AngularJS Hello World Here is a simple "hello world" example made with AngularJS which shows the model, view and controller parts of an AngularJS app: <! In this example the "view" is this part: <div ng-controller="HelloController" ><h2>Hello {{helloTo.title}} ! Notice the ng-controller attribute. The "controller" is this part: The $scope parameter passed to the controller function is the "model". Fourth, we need a view. <! <!
UI Router: ui.router
The main module for ui.router There are several sub-modules included with the ui.router module, however only this module is needed as a dependency within your angular app. The other modules are for organization purposes. The modules are: ui.router - the main "umbrella" moduleui.router.router - You'll need to include only this module as the dependency within your angular app. <!
Animation in AngularJS by Gias Kay Lee
in AngularJS.tw Meetup #2 Gias Kay Lee How people still do today $('div').animate({ opacity: 0.25 .fade { transition: 1s; opacity: 0.25; Put Presentational Details Back to Where They Belong .fade { transition: 1s; opacity: 0.25; $('button').click(function() { $('div').addClass('fade'); ie. Separation of Concerns Performance is Better .fade { transition: 1s; transform: translateZ(0); opacity: 0.25; Wait... What about... cross-browser support? Sexy and robust. can see CSS3 animation as of May 2013 More good news! IE10 is seriously pwning IE9! wOOt! Beginning of Auto-upgrade ⬇ So that leaves roughly 10% of users still at large but, please lemme tell you this... Hope Linus won't mind me borrowing this wonderful shot to convey my idea. Do you know that... of mobile web users still come from feature phones and other primitive devices? So why would you care... whether IE8 users could see your fancy animations the and
AngularUI for AngularJS