app.directive('zlQueryBuilder', function () {
    return {
        restrict: 'E',
        scope: false,
        replace: false,
        template: 'directives/queryBuilder/queryBuilder.html',
        controller: function($scope) {
            $scope.choices = [
                {
                    key: '$exists',
                    caption: 'existe',
                    template: 'Boolean.html'
                },
                {
                    key: ''
                }
            ];
        }
    };
});

/*
<option ng-value="'exists'">existe</option>
        <option ng-value="'startsWith'">começa com</option>
        <option ng-value="'endsWith'">acaba em</option>
        <option ng-value="'contains'">contém</option>
        <option ng-value="'equals'">igual a</option>
        <option ng-value="'notEquals'">diferente de</option>
        <option ng-value="'in'">algum de</option>
        <option ng-value="'nin'">nenhum de</option>
        <option ng-value="'gt'">gt</option>
        <option ng-value="'gte'">gte</option>
        <option ng-value="'lt'">lt</option>
        <option ng-value="'lte'">lte</option>
        <option ng-value="'inclusiveBetween'">entre (inclusive)</option>
        <option ng-value="'exclusiveBetween'">entre (exclusive)</option>
        */