UNPKG

acha-framework

Version:

is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...

20 lines 673 B
(function ($, angular, underscore, window, document, undefined) { 'use strict'; angular.module('frontend.directives').directive('validation-messages', [function () { return { restrict: 'E', replace: true, scope: { model: '=?' }, templateUrl: '/templates/framework/directives/validation-messages/template.html', link: function (scope, element, attr) { scope.vm = {}; scope.vm.init = function () { if (angular.isUndefined(scope.model)) { scope.model = []; } }; scope.vm.init(); } }; }]); }(jQuery, angular, _, window, document));