{"version":3,"sources":["aZcentric.compareTo.js"],"names":["angular","module","directive","require","scope","otherModelValue","link","element","attributes","ngModel","$validators","modelValue","$watch","$validate"],"mappings":";;;;;;CAAA,WACA,YACAA,SAAAC,OAAA,qCAAAC,UAAA,YAAA,WACA,OACAC,QAAA,UACAC,OALAC,gBAAA,cAEAC,KAAA,SAAAF,EAAAG,EAAAC,EAAAC,GACAA,EAAAC,YAAA,UAAA,SAAAC,GACA,MAAAA,KAAAP,EAAAC,iBAEAI,EAAAC,YAAA,cAAA,SAAAC,GACA,MAAAA,KAAAP,EAAAC,iBAEAD,EAAAQ,OAAA,kBAAA,WACAH,EAAAI","file":"aZcentric.compareTo.min.js","sourceRoot":"/dist/","sourcesContent":["/**\n * aZcentric - The framework for aZcentric.\n * @version v0.5.1-dev\n * @link http://www.azaas.com/\n * @license \n */\n(function () {\n 'use strict';\n angular.module('aZcentric.components.compareTo', []).directive('compareTo', function () {\n return {\n require: 'ngModel',\n scope: {\n otherModelValue: '=compareTo'\n },\n link: function (scope, element, attributes, ngModel) {\n ngModel.$validators['compareTo'] = function (modelValue) {\n return modelValue === scope.otherModelValue;\n };\n ngModel.$validators['compare-to'] = function (modelValue) {\n return modelValue === scope.otherModelValue;\n };\n scope.$watch('otherModelValue', function () {\n ngModel.$validate();\n });\n }\n };\n });\n})();\n"]}