export class HashiCoreInputTextViewController { public static NAME = "HashiCoreInputTextViewController"; public static NAME_AS = `${HashiCoreInputTextViewController.NAME} as hashiCoreInputTextViewController`; public static $inject = ["$scope"]; private functionOnChange: Function; public textValue: string; constructor($scope: ng.IScope) { this.functionOnChange = $scope["onChange"]; this.textValue = $scope["textValue"]; } public textChanged() { if (this.functionOnChange) { this.functionOnChange({ textValue: this.textValue }); } } }