Filtri

  • filter: dateFormat
    • input: stringa che rappresenta la data
    • return default: a date (obj)
    • return: a date in a specific string format
  • filter: htmlToPlaintext
    • input: code
    • return: html stripped text
  • filter: metersToKm
    • input: meters
    • return: km (or meters if < 1 Km) in string format
  • filter: minutesToPixel
    • input: minutes
    • return: pixel (integer)
  • filter: secondsToHoursinput: seconds
    • return: seconds in string format (es. 3 hours and 3 minutes)
  • filter: timeFormat
    • input: minutes (integer)
    • return: formatted hour and minutes (es. 17:35)
  •  
  • filter: timeToQuarter
    • input: minutes
    • return: remaining minutes without hours
  • filter: truncateHtmlTest
    • input: blocco di html, lunghezza della stringa che torna, elemento da aggiungere al termine del prodotto (…)
    • return: torna la stringa pulita e della lunghezza desiderata che termina con il terzo parametro inserito