/// <reference path="../scripts/typings\angularjs\angular.d.ts" />

// Anwendung initialisieren
var app = angular.module('FlugApp', [])

// eigenen Filter festlegen
 .filter('numberFixedLen', function () {
  return function (n, len) {
   var num : any = parseInt(n, 10);
   len = parseInt(len, 10);
   if (isNaN(num) || isNaN(len)) {
    return n;
   }
   num = '' + num;
   while (num.length < len) {
    num = '0' + num;
   }
   return num;
  };
 });


