Full example of new angular service