title: AngularJS dropdown scope
body: <p>I need some help. thanks for any answers!<br>
  I want to change this code..</p>
  
  <pre><code>&lt;select id='input_location' name='input_location[]' multiple="multiple"&gt;
  &lt;option value=""&gt;&lt;/option&gt;
      &lt;?
      $car_locations = $this-&gt;item_model-&gt;getAllLocation();
           foreach($car_locations as $m){?&gt;
  
      &lt;option value='&lt;?=$m-&gt;office_city_state?&gt;'&gt; &lt;?=($m-&gt;office_city_state)?&gt; &lt;/option&gt;
      &lt;?}?&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>to this code.</p>
  
  <pre><code>&lt;span ng-dropdown-multiselect="" options="example1data" selected-model="example1model"&gt; &lt;/span&gt;
  
  &lt;script type="text/javascript"&gt;
  
          $("#input_location").multiSelect();
  
          var jayApp = angular.module('jayApp',['angularjs-dropdown-multiselect']);
          jayApp.controller('jayController', function($scope) {
                                 $scope.example1model = []; 
                                 $scope.example1data = [ {id: 1, label: "David"}, {id: 2, label: "Jhon"}, {id: 3, label: "Danny"}];
                                      })
  
   &lt;/script&gt;
  </code></pre>
  
  <p>How can I use foreach code to $scope.example1data ??</p>