title: Can't set several objects as angular constants
body: <p>Constants in angularjs are cool, but when I tried to put 2 objects into the same constant, I've got an error:
  <em><strong>Cannot read property 'property1' of undefined</strong></em>.
  Here is the part of my code:</p>
  <pre><code>angular
      .module('myApp')
      .constant('CONST', {
          constantOne: {
              'property1': 'text1',
              'property2': 'text2'
          },
          constantTwo: {
              'property3': 'text3',
              'property4': 'text4'
          }
      })
  </code></pre>
  <p>And in my controller something like that:</p>
  <pre><code>var items: {
    oldProperty: 'property1',
  }    
  items.newProperty1 = CONST.constantOne[items.oldProperty];
  items.newProperty2 = CONST.constantTwo[items.oldProperty];
  </code></pre>
  <p>But when I separated this objects to 2 different constants, everything is OK.
  So, is it possible to use two objects in the same constant? I feel that I just made a syntax mistake, but I can't find where is it.</p>
  <p><strong>P. S.</strong> If it does matter, I use this constants for mapping inside my controller</p>
  <h1>Thanks for any help</h1>