title: Calling a Factory From Outside of AngularJS
body: <p>How do you call a factory? As defined below.</p>
  
  <pre><code>angular.module('fb.services', []).factory('getQueryString', function () {
      return {
          call: function () {
              var result = {}, queryString = qs.substring(1),
                  re = /([^&amp;=]+)=([^&amp;]*)/g,
                  m;
              while (m = re.exec(queryString))
              result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
              return result;
          }
      }
  });
  alert(getQueryString.call('this=that&amp;me=you'));
  </code></pre>