Angular controller to share data between pages.