title: execute a function each time, when app started in ionic
body: <p>I am using ionic framework to build my app, which seems working fine as per my requirement. </p>
  
  <p>Now i close my app and reopen again it maintaining the state which is also fine. </p>
  
  <p>Now my question is </p>
  
  <p>1) Does app.js files run each time when my app is open ?
   i tried to add alert in app.js , which works only first time<br>
    Is this right or wrong ?</p>
  
  <p>2) I want to run a particular function each time when my app get started. Is there is any way to do this ?</p>
  
  <p>Thanks</p>