/todo.service' ; @ Component ({ selector : 'todo' , template : ` < div > My Todo List : < ul > < li * ngFor = "let todo of todos" > {{ todo .
For the guide we'll be comparing just the .service() method against Angular 2 services, if you want to dive into the service versus factory explanation, check out my blog post on it.
To use the Service inside a Controller for example, we need to utilise Angular's Dependency Injection (DI).
In Angular 1.x, we can create a Service using the .service() API, let's dive in!
We simply register the service with .service() and it's fully available inside the 'app' module.