I\'m following the video tutorials on egghead.io but while trying to follow his example when he created a factory (see video here) I keep getting \"angular is not defined\"
You have to put your script tag after the one that references Angular. Move it out of the head:
head
The way you've set it up now, your script runs before Angular is loaded on the page.