» Posts by David Barreto

Redux Form Validation with ngrx-forms

Written by David Barreto

This blog was originally posted on the ng-conf website. Many enterprise applications use complex forms with even more complex validation rules. Out of the box, Angular offers a solution to handle forms including its validation. But even though the solution is feature rich, it can't cover every possible use case. What if we want to count how many fields are invalid in any given section...

Read More »

From REST to GraphQL

Written by David Barreto

I've been hearing about GraphQL lately, a library to create an API endpoint for your data. GraphQL has been positioned as a replacement for our traditional REST backends as it tries to solve the same problem. Which is, to make data available for our web or mobile apps, but with a different approach that is supposed to be more flexible. To be honest, I was...

Read More »

Optimize your Angular 2 Application with Tree Shaking

Written by David Barreto

Update: This post was written just after Angular's version 2.0 release. In that era the Angular CLI project was just getting started. Today they provide a complete build package so you should go over to their site if you want to get started right away: https://cli.angular.io/ Disclaimer: As commenter Ben Elliot pointed out, the UglifyJs plugin used in the Webpack build...

Read More »