title: space is shown when selecting the dropsdown option - angularjs
body: <p>I have created an application in AngularJS with a drop down with space in option using a filter. The application is working fine with the options in drop down with indentation space before the values but the problem is when a select an option which is having a space, the space is also shown in the view like as shown below</p>
  
  <p><img src="https://i.stack.imgur.com/cgK2P.png" alt="enter image description here"></p>
  
  <p>actually I want the indentation space within the drop-down options but only thing is that I don't want that space to be get displayed when selection shown above</p>
  
  <p>can anyone please tell me some solution to prevent the space to display when selection</p>
  
  <p>My code is as given below</p>
  
  <p><strong><a href="http://jsfiddle.net/2upzfd33/" rel="nofollow noreferrer">JSFiddle</a></strong></p>
  
  <pre><code>&lt;select&gt;
      &lt;option ng-repeat="(key, value) in headers"&gt;{{value | space}}
      &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>