title: Why doesn't this angular select wrapper directive work?
body: <p>Im trying to make a directive that wraps around <code>select</code> with a hard-coded list</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var app = angular.module('dirApp',[]);
  
  app.directive('dir', [function(){
    return{
              restrict: 'E',
              template: "&lt;select ng-options='x for x in vm.arr'&gt;&lt;/select&gt;",
              controllerAs: 'vm',
              link: function(scope) {
                  scope.arr=["a", "b"];
              }
          };
  }]);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;
  &lt;div ng-app="dirApp"&gt;
  &lt;dir&gt;&lt;/dir&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>As you can see for some reason the list does not get populated with values. What am I doing wrong?</p>