This gist demonstrates how you can use a service into storing and manipulating global objects accross multiple controllers.