This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
| @app = angular.module 'myApp', [] | |
| @app.filter "nrFormat", -> | |
| (number) -> | |
| if number!=undefined | |
| console.log number | |
| abs = Math.abs(number) | |
| if abs >= Math.pow(10, 12) | |
| # trillion | |
| number = (number / Math.pow(10, 12)).toFixed(1)+"t" | |
| else if abs < Math.pow(10, 12) and abs >= Math.pow(10, 9) |