When you refresh a page all your JavaScript context is lost (including all data saved in variables).
One way to maintaing information from one session to another is to use the browser's localStorage. In your case, you probably want to check ngStorage.