JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp">
    <form>
        <customer-select></customer-select>
    </form>
</div>

JavaScript

var myApp = angular.module('myApp', []);

myApp.directive('customerSelect', function() { 
    return {
        restrict: 'E',
        replace: true,
        controllerAs: 'customerSelect',
        controller: function($scope, $log) {
            this.customers = [];
            this.customers.push({"COMPANYNAME":"My Company","CUSTOMERID":5});
            this.customers.push({"COMPANYNAME":"Another Company","CUSTOMERID":3});
            $log.log(this.customers);
        },
        template: '<select name="customer" ng-model="formData.customer" ng-options="customer.COMPANYNAME for customer in customerSelect.customers"><option value="">Select Customer</option></select>'
    }
});