Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(){
  2.   'use strict';
  3.  
  4.   /**
  5.    * @ngdoc filter
  6.    * @name identificacionApp.filter:EdadYears
  7.    * @function
  8.    * @description
  9.    * # EdadYears
  10.    * Filter in the identificacionApp.
  11.    */
  12.  
  13.   EdadYearsFilter.$inject=['Utils'];
  14.  
  15.   function EdadYearsFilter(Utils) {
  16.       return function (input) {
  17.         var res = '';
  18.         if (input!=null){
  19.           res = Utils.calcularEdad(input);
  20.         }
  21.         return res;
  22.       };
  23.     }
  24.  
  25.   angular.module('padron.filters').filter('EdadYears',EdadYearsFilter);
  26.  
  27. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement