Giter Club home page Giter Club logo

angularjs-ordinal-filter's People

Contributors

falsetto avatar jdpedrie avatar levithomason avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

angularjs-ordinal-filter's Issues

Should NOT append ordinal suffix for null, undefined and empty string

To make it consistent with how AngularJS displays {{ "" }}, {{ null }} and {{ undefined }}, the filter shouldn't be appending a suffix for these values.

That is, for the following template:

{{ 123 | ordinal }}, {{ "" | ordinal }}, {{ null | ordinal}}, {{ undefined | ordinal }}, {{ "456" | ordinal }}

I would expect the output to look like this:

123rd, , , , 456th

Number.isNaN is not supported on all browsers

Number.NaN on Safari and IE doesn't work and causes exceptions.
Code to review is: ordinal-browser.js:30

function numeric(n) {
  return 'number' === typeof +n && !Number.isNaN(+n);
}

The above can simply be changed to:

function numeric(n) {
  return 'number' === typeof +n && !isNaN(+n);
}

The above issue affects version 2.1

Complete bower registration, so version number can be stricted

bower angularjs-ordinal-filter#0.0.1 ENORESTARGET No tag found that was able to satisfy 0.0.1
In order to be able to recreate a build at any time in the past, it would be nice to lock the library version number in bower.json. Unfortunately, it's not possible now.

License needed

Could you throw a license on this? All of us are in the dark that you might come back and sue us for a billion dollars for 4 lines of code :) I vote for MIT.

Does not work at all.

Hi, since you updated the bower release this does no longer work, it does not make anything ordinal. I was using it before and it was working so smoothly, I had to fork it and go back to commits, to when your main was ordinal.js in order for it to work again.

Thanks for that code though, it works very nicely.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.