Tag Archives: ZoneJS

An End-to-End AngularJS Guide


BACKGROUND (WHAT AND WHY?)

A Different Angle: What is AngularJS?

10 Reasons Web Developers Should Learn AngularJS

Video: Angular and the .NET World

Single Page Applications (SPA): Your Browser is the OS

(Paid Video Curse): Fundamentals of AngularJS

ESSENTIALS

AngularJS Project Essentials

Understanding Providers, Factories, and Services in Angular

Understanding AngularJS Isolated Scope

Dependency Injection Explained via JavaScript

No Need to $watch AngularJS “Controller As”

Using AngularJS to angular.extend Your Code Quality

Quick Tip: Using a Filter with ngClass

ADVANCED TOPICS

AngularJS Lifetime Management, Lazy-Loading, and other Advanced Dependency Injection Techniques

AngularJS Debugging and Performance

Interception using Decorator and Lazy-Loading

Using Zone to Trigger Digest Loop for External Functions

Instrumenting Angular with ZoneJS

TESTING

I’m not Mocking You, Just Your AngularJS Tests

AngularJS Integration Tests with Mocks and Magic

EXAMPLES

Let’s Build an AngularJS App!

Quick Tip: Counting Watches

Generate Mazes in AngularJS with 8-bit Algorithms

Real-time Communication in AngularJS with ($Q)orlate

Build a JavaScript Feed Reader in Under 10 Minutes with AngularJS

AngularJS Explained with Answers, Videos, and JsFiddles

Commodore 64 Meets AngularJS and TypeScript

BEST PRACTICES

The Top 5 Mistakes AngularJS Developers Make (5 Part Series)

Revisiting AngularJS with TypeScript

MODERNIZING APPS (SUCH AS SILVERLIGHT)

AngularJS: The Modern HTML5 Answer to Silverlight’s MVVM

Feel free to comment with your favorite links on other sites and blogs as well.

Taming Asynchronous Tasks in JavaScript with Zone.js


via C#er : IMage: Taming Asynchronous Tasks in JavaScript with Zone.js.

I recently learned about a new project by the Angular team called Zone. This project is one of those rare gems that is only a few lines of code but is so groundbreaking it literally takes time to wrap your mind around it. The easiest way to get started with Zone is to watch the excellent talk by its creator, Brian Ford. He demos some pretty cool scenarios that are all in the project repository.

In a nutshell, Zone provides what you might consider a “thread execution” context for JavaScript. It basically takes the current “context” you are in and intercepts all asynchronous events so they “map” to the same context. This enables you to do some pretty interesting things such as view stack traces through the original wire-up (i.e. you no longer get “disconnected” at the point the event was raised) or add tooling. You can use Zone to change the behavior of events (such as implementing your own version of setTimeout) and to keep track of tasks.