| 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() { | ||||
| 10 | console.log('validation'); | ||||
| 11 | this.config = { | ||||
| 12 | type: 'danger' | ||||
| 13 | }; | ||||
| 14 | } | ||||
| 15 | } | ||||
| 16 | |||||
| 17 | export 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 | }; | ||||