» Posts by Evan Schultz

Do it with Elegance: How to Create Data-Driven User Interfaces in Vue

Written by Evan Schultz

Although we usually know what components are needed when building most views within an app, sometimes we don't know what they are until runtime. This means we need to build a screen based on the application state, user preferences, or response from an API. A common case is building dynamic forms, where the questions and components needed are either configured by a JSON object, or...

Read More »

Are Your Unit Tests Failing for the Expected Reasons?

Written by Evan Schultz

Unit tests can be an invaluable tool in the developers toolbox. You don't need to be a strict TDD purist to make unit testing worthwhile. Once you get into the flow of writing tests, it can be rather satisfying to watch the Nyan Cat Reporter go across your screen as the number of tests passing increase. As with any other tool though, it can be...

Read More »

Quick Start with Angular Modules

Written by Evan Schultz

Angular 2 RC5 was released was released last week. Looking through the change log of bug fixes and new features shows a lot of progress has been made. However, I experienced a sinking feeling after reading several pages of Breaking Changes about the introduction of @NgModule and changing how we need to bootstrap our applications. To be fair, the Angular team did a good job...

Read More »

Recipes for Redux

Written by Evan Schultz

As Redux is becoming more popular within the Angular community, it's not always clear how to bridge the gap between working with Redux and how to make it fit naturally with Angular 2. One of the goals with ng2-redux is to provide a developer experience that feels natural with Angular 2 while still benefiting from the existing Redux community: dev tools, middleware, etc. Since last...

Read More »

Configurable Services in Angular 2

Written by Evan Schultz

*This post currently reflects an earlier version of Angular, and may not be up to date or reflect the current release. * Please refer to our Angular 2 eBook for more info. Angular 2 has greatly simplified services since Angular 1. In Angular 1, there was a service, factory, provider, delegate, value, constant, etc. and it wasn't always clear when to use which. For most use...

Read More »