I try to understand the examples on angularjs.org. For example the following code snippet. How does this .value
and .factory
and .config
work?
angular.module('project', ['ngRoute', 'firebase'])
.value('fbURL', 'https://angularjs-projects.firebaseio.com/')
.factory('Projects', function($firebase, fbURL) {
return $firebase(new Firebase(fbURL)).$asArray();
})
.config(function($routeProvider) {
...
EDIT:
My point of not understanding the code above is the blank line after the first line and the line starting with a dot.