In my HTML I have this line:
Although this isn't really specified in the select2 documentation, you'll need to pass an id key with a function value to select2.
$scope.privsSelect2options = { id: function(element) { return element.name; } ... };