angular logo

Changing your page title when a route changes with Angular 2

Last time, we implemented our pokémon detail view by using routing to switch between the overview and the detail. However, currently we still have the same title across our entire application. Usually when you have an application with multiple pages, you want to change the page title depending on the page the user visits.

angular logo

Using routing with Angular 2

Last time, we pretty much finished our pokédex overview by implementing some pagination. Now that the pagination is behind us, we can focus on creating a more detailed view for our pokémons. If you remember when we wrote a service, we actually provided two functions, a findAll() and findOne() function. However, we didn’t use the […]

angular logo

Writing your first component with Angular 2

In my last tutorial, we finished creating a service that has two functions for finding pokémons. First of all we have the findAll() function to return multiple pokémons (only basic info though) and secondly, we have the findOne() function which will return more detailed information about a single pokémon. Both of these are using the […]

angular logo

Writing services with Angular 2 and RxJS

In our last article, we’ve set up a project with Angular 2 using Angular CLI. Now that we have a project and we understand it, it’s time to start writing some code. In this series I will be creating a small Pokédex using the Pokéapi. The application will have two pages, a list of all […]

angular logo

Getting started with Angular 2 using Angular CLI

Angular 2 has been released for a few weeks/months now, so it’s time to explore what has been changed (spoiler alert: a lot) and how you can get started with Angular 2. During this series I will build a small Pokédex, building on the pokéapi.

More fun with AngularJS $http: a loading indicator

In my previous tutorial we used $http to create a utility that automatically converts all ISO 8601 date strings to proper JavaScript dates. $http allows us to do a lot of things. Ever wanted to create a “Loading, please wait…” indicator when your data is loading over your REST service? With $http you can easily […]

AngularJS $http and dates

When you’re writing AngularJS applications, chances are that you’re going to have to consume a REST API. If you’re as lucky as me you’ll encounter a situation where you’ll have to read dates. However, while Date objects are a part of the standard JavaScript specs, it’s not a part of the JSON spec. So… how […]

Using Sinon.js while testing AngularJS applications

I’ve already done quite some tutorials about testing JavaScript applications, recently about testing a Meteor application with Jasmine and Sinon.js. Sinon.js is not only useful to Meteor applications though, and in this article I’ll show you how helpful it can be while testing AngularJS applications.