title: How do you create a dynamic select list from comma separated string?
body: <p>I am taking information from my database and trying to figure the best way to display it within the app.</p>
  
  <p>This is my database info</p>
  
  <blockquote>
    <p>[{"form_input_id":"1","form_id":"6","title":"Please enter your room number?","input_type":"text","identifer":"room","choices":"s:0:\"\";","heading":"Valet Request"},{"form_input_id":"2","form_id":"6","title":"Please enter any comments or feedback.","input_type":"textarea","identifer":"feedback","choices":"s:0:\"\";","heading":"Valet Request"},{"form_input_id":"3","form_id":"6","title":"Please choose office","input_type":"select","identifer":"office","choices":"s:19:\"Sales, Reservations\";","heading":"Valet Request"},{"form_input_id":"18","form_id":"6","title":"Last Name","input_type":"text","identifer":"Last_Name","choices":"s:0:\"\";","heading":"Valet Request"},{"form_input_id":"19","form_id":"6","title":"Type of Car","input_type":"select","identifer":"Car_type","choices":"s:20:\"Buick, Olds, Ferrari\";","heading":"Valet Request"}]</p>
  </blockquote>
  
  <p>I am able to pull everything the way I want to except choices. I am trying to create dynamic forms and need to create a select showing the choices.</p>
  
  <p>My current controller:</p>
  
  <pre><code>    controller('FormCtrl', function($scope, $ionicLoading){
  
  // Grab Form
  var form = angular.fromJson(window.localStorage.getItem('form'));
  
  // Set Title
  $scope.title    = form[0].heading;
  
  // Send Form Data
  $scope.forms    = form;
  
  })
  </code></pre>
  
  <p>And my view:</p>
  
  <pre><code>&lt;ion-view title="Form" hide-nav-bar="true"&gt;
  &lt;ion-header-bar align-title="left" class="bar-dark"&gt;
      &lt;div class="buttons"&gt;
          &lt;a href="#/lobby" class="button button-dark"&gt;Cancel&lt;/a&gt;
      &lt;/div&gt;
  &lt;/ion-header-bar&gt;
  &lt;ion-content id="dynamic" scroll="true" padding="true"&gt;
          &lt;h2 class="text-center"&gt;{{title}}&lt;/h2&gt;
          &lt;form&gt;
              &lt;div ng-repeat="form in forms"&gt;
                  &lt;label&gt;{{form.title}}&lt;/label&gt;
                  &lt;div ng-if="form.input_type == 'text'"&gt;
                      &lt;input type="text" name="{{form.identifier}}" /&gt;
                  &lt;/div&gt;
                  &lt;div ng-if="form.input_type == 'time'"&gt;
                      &lt;input type="time" name="{{form.identifier}}" /&gt;
                  &lt;/div&gt;
                  &lt;div ng-if="form.input_type == 'textarea'"&gt;
                      &lt;textarea name="{{form.identifier}}"&gt;&lt;/textarea&gt;
                  &lt;/div&gt;
                  &lt;div ng-if="form.input_type == 'select'"&gt;
                      &lt;select name="{{form.identifier}}"&gt;
                                NEED TO FIGURE HOW TO DISPLAY CHOICES AS OPTIONS
                      &lt;/select&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/form&gt;
  &lt;/ion-content&gt;
  </code></pre>