title: How to Display Mongoose enum in AngularJS View
body: <p>I've got a Mongoose schema which uses enumeration on one of its fields such as below.</p>
  
  <pre><code>var testSchema = new Schema({
      name: {
              type: String,
              default: '0',
              enum: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14'],
              trim: true,
              required: 'Title cannot be blank'
          }
  });
  </code></pre>
  
  <p>I would like to display the enums as options in a view with this code, but I'm unable to accomplish.</p>
  
  <pre><code>&lt;datalist id="enums" data-ng-repeat="x in test.name.enumValues" &gt;
      &lt;option data-ng-bind="x"&gt;&lt;/option&gt;
  &lt;/datalist&gt;
  </code></pre>
  
  <p>Is there any possible way that I can do to display these enumerations in the view? Thanks in advance.</p>