lib/ngapp/tpl.helper.js
function addValidations(scope, validations) {
        for (var name in validations) {
            if (validations.hasOwnProperty(name) && validations[name]) {
                scope[name] = $injector.invoke(validations[name]);
            }
        }
    }
function addValidations(scope, validations) {
        for (var name in validations) {
            if (validations.hasOwnProperty(name) && validations[name]) {
                scope[name] = $injector.invoke(validations[name]);
            }
        }
    }
function addValidations ( scope , validations ) { for ( var name in validations ) { if ( validations . hasOwnProperty ( name ) && validations [ name ] ) { scope [ name ] = $injector . invoke ( validations [ name ] ) ; } } }
Add validations to the scope
@param scope
@param validations
Add validations to the scope