title: Add new option for ui-select2 in angular js
body: <p>I am using ui-select2 in angularjs which uses select2 plugin of jquery.  I have some pre-defined list and then when i start searching for anything and if that is not found in list i want to add a new value.  I am doing something like this : </p>
  
  <pre><code>var selectOptions = {
      formatNoMatches: function(term) {
                  return "&lt;a ng-click=\"addCountry('abc');\"&gt;Add new country&lt;/a&gt;";
              }
   };
  
   $scope.addCountry = function(countryName) {
      console.log (' test');
   };
  </code></pre>
  
  <p>But the click doesnt work and the console in addCountry is never printed.  Any idea how to add new option for ui-select2 in angular js ?</p>