blob: 7481b3bb0a26c6134530080e7a39c218db356efd [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() {
10 console.log('validation');
11 this.config = {
12 type: 'danger'
13 };
14 }
15}
16
17export const xosValidation: angular.IComponentOptions = {
18 template: require('./validation.html'),
19 controllerAs: 'vm',
20 controller: ValidationCtrl,
21 transclude: true,
22 bindings: {
23 field: '=',
24 form: '='
25 }
26};