title: How to create global filter in angularjs for different modules
body: <p>I have Module1 and Module2. I need to write common filter for both module. So how to create global filter so I will used in both modules. Please find below sample code</p>
  
  <pre><code>    //module One with Filter
  var Module1 = angular.module("Module1App", []);
  Module1.filter('makeUppercase', function () {
      return function (item) {
          return item.toUpperCase();
      };
  });
  
  //Module two with filter
  var Module2 = angular.module("Module2App", []);
  Module2.filter('makeUppercase', function () {
      return function (item) {
          return item.toUpperCase();
      };
  });
  </code></pre>