The .config function isn't explained, but it's used here: http://www.learn-angular.org/#!/lessons/the-provider-recipe