Categories
AngularJS Coding Tutorials

Build a secure API with Auth0, ExpressJS and AngularJs

Many modern projects separate the backend from the frontend user interface. The bakend usually handles incoming requests and responses with some information in JSON or XML. When you are working with an architecture like this, your API needs to be exposed in a secure way and here is where Auth0 will simplify your design. In […]

Categories
AngularJS Coding Javascript

To bind nor not to bind

If you have read my previous article about chaining promises, you’ll know I love using small functions in “then” methods, but sometimes chaining is not that simple. For example, when you have to execute in your “then” method a function receiving two parameters it is not possible… or it is? In these cases you can use […]

Categories
AngularJS Javascript

Clean code chaining $q promises

$q promises for angular are not only good for async tasks but an incredible way to write clean and readable code. Since a few months, I’ve decided to write my code in very small functions with its in/out parameters and its detailed documentation. Maybe you are not following the relation between $q promises and organizing […]