Validating form fields on the client
Change-Id: I33a0c2417d73d7974e4dc0c2f9f77f3984508606
diff --git a/src/app/core/validation/validation.ts b/src/app/core/validation/validation.ts
new file mode 100644
index 0000000..7481b3b
--- /dev/null
+++ b/src/app/core/validation/validation.ts
@@ -0,0 +1,26 @@
+import './validation.scss';
+
+class ValidationCtrl {
+
+ static $inject = [];
+
+ public config: any;
+
+ $onInit() {
+ console.log('validation');
+ this.config = {
+ type: 'danger'
+ };
+ }
+}
+
+export const xosValidation: angular.IComponentOptions = {
+ template: require('./validation.html'),
+ controllerAs: 'vm',
+ controller: ValidationCtrl,
+ transclude: true,
+ bindings: {
+ field: '=',
+ form: '='
+ }
+};