title: Is there a way so we could create a global fuction that could be accessed all views in app in angularjs
body: <p>I am developing phonegap app with ionic framework,in this app i have 13 controller and 13 views files in all views i need to call same function formateDateWithExtraValue(user.date), to call this function i have to declare this function in all 13 controllers like bellow</p>
  
  <p>$scope.formateDateWithExtraValue = function(Udate){ 
     "my code are here"
      return result; 
   }</p>
  
  <p>is there a way so we could write this function globally, so it could be accessible across all views.
  like in PropertyView.html
     <p>{{ formateDateWithExtraValue(user.date) }}</p></p>