Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 1 | import './validation.scss'; |
| 2 | |
| 3 | class ValidationCtrl { |
| 4 | |
| 5 | static $inject = []; |
| 6 | |
| 7 | public config: any; |
| 8 | |
| 9 | $onInit() { |
Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 10 | this.config = { |
| 11 | type: 'danger' |
| 12 | }; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | export 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 | }; |