Dynamically Loading Controllers and Views with AngularJS and RequireJS – Dan Wahlin

Dynamically Loading Controllers and Views with AngularJS and RequireJS

via Dynamically Loading Controllers and Views with AngularJS and RequireJS – Dan Wahlin.

Excellent overview of an approach based on convention over configuration for lazy loading of AngularJS controllers (and potentially other artifacts as well).  I have been wrestling with this problem and this post is very complete and well explained.  Thanks Dan.

PS – why is it that you always find the thing in the last place you look? :-)

Isomorphic JavaScript: The Future of Web Apps – Airbnb Engineering

A Hybrid Approach

At the end of the day, we really want a hybrid of the new and old approaches: we want to serve fully-formed HTML from the server for performance and SEO, but we want the speed and flexibility of client-side application logic.

To this end, we’ve been experimenting at Airbnb with “Isomorphic JavaScript” apps, which are JavaScript applications that can run both on the client-side and the server-side.

An isomorphic app might look like this, dubbed here “Client-server MVC”

via Isomorphic JavaScript: The Future of Web Apps – Airbnb Engineering.

Practical End-to-End Testing with Protractor | ng-newsletter

Protractor

The new, preferred end-to-end testing framework is called Protractor. Unlike the Angular scenario runner, Protractor is built on Selenium’s WebDriver, which is an API, written as extensions, for controlling browsers.

WebDriver has extensions for all sorts of different browsers, including the most popular. We gain speed and stability in our tests by developing against true web browsers.

Luckily, Protractor is built atop the Jasmine framework, so we don’t need to learn a new framework in order to use it. We can also install it as a standalone test runner or embed it in our tests as a library.

via Practical End-to-End Testing with Protractor | ng-newsletter.