title: How to use constants in angularjs defined in same file
body: <p>I'm new to angular js. Is it possible to reuse the constants defined in the same file like below. If not please let me know a better way to reuse the defined constants. My intention behind this is I should be able to use LoginQuery.url in my service instead of concatenating.</p>
  
  <pre><code>angular.module('myApp.constants', []).
  constant('ServerConfig', {
      'url': 'http://localhost:3000/'
  }).
  constants('LoginQuery', {
          'url': ServerConfig.url + "/login"
      }
  );
  </code></pre>
  
  <p>Thanks</p>