Combined two of Chris Sevilleja's Angular examples - #learning