export class RadioController {
    constructor($scope) {
        'ngInject';

        this.$scope = $scope;

        this.$onInit = this.init;
    }

    init() {}
    onChange() {
        // e.stopPropagation();
        // e.preventDefault();
        if (this.ban) {
            return;
        }
        this.inputModel = this.inputValue;
    }
}

export const radioComponent = {
    bindings: {
        inputModel: '=',
        inputValue: '<',
        labelText: '<',
        ban: '<'
    },
    templateUrl: 'app/controls/components/radio/radio.component.html',
    controller: RadioController
};