Q:

Angular not working after using services

I was working in Angular without using any service, and it's working fine, until I decided to put my code in a service, now Angular is not working at all. I have multiple files around, so I decided to use plunker to simulate the case. Here's my code: http://goo.gl/Ejkg33
Thank you.

A:

Issues I found:

Your link to angular was broken, that appears to be a plnkr issue though, and not yours. I'll send them a tweet and inform them.
githubController and githubService were missing the .js extention.
You deleted style.css but didn't remove the reference to it (not effecting the page, but still throwing an error in the console)
Returning basically nothing in the service. Updated that (see below)
You were forgetting to name the service. See 2nd code block below.

In the service I updated it to return the 2 functions:
return {
    getUser: getUser,
    getRepos: getRepos
};

Naming the factory:
module.factory('github', github);

instead of just
module.factory(github);

Here's an updated plnkr: http://plnkr.co/edit/T7l0nDP2VK9lYy4utHfI?p=preview

