blob: 5a2704590e0acf5a8c4a50227bbb90cb4dece764 [file] [log] [blame]
Matteo Scandoloac8c8c22017-01-09 15:04:32 -08001import './validation.scss';
2
3class ValidationCtrl {
4
5 static $inject = [];
6
7 public config: any;
8
9 $onInit() {
Matteo Scandoloac8c8c22017-01-09 15:04:32 -080010 this.config = {
11 type: 'danger'
12 };
13 }
14}
15
16export const xosValidation: angular.IComponentOptions = {
17 template: require('./validation.html'),
18 controllerAs: 'vm',
19 controller: ValidationCtrl,
20 transclude: true,
21 bindings: {
22 field: '=',
23 form: '='
24 }
25};