Giter VIP home page Giter VIP logo

Comments (5)

urish avatar urish commented on July 4, 2024

Hi, is there anything specific not working with RC6?

from ngx-moment.

chl03ks avatar chl03ks commented on July 4, 2024

i think i have a problem with the version of the rxjs but i'm not sure but it will be great if you can upgrade the version maybe i'll open a PR later

from ngx-moment.

kirbyt avatar kirbyt commented on July 4, 2024

Hi, is there anything specific not working with RC6?

I updated to RC6 today and now I get this error message:

main.ts:13Error: Template parse errors:
'time' is not a known element:

  1. If 'time' is an Angular component, then verify that it is part of this module.
  2. If 'time' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.

While digging around I found this comment that says "starting with RC6 Angular2 enforces that tags name are valid." See the comment for more details.

I'm an Angular 2 novice, so I don't have a solution to the problem yet.

from ngx-moment.

urish avatar urish commented on July 4, 2024

Hi, just replace the <time> tag with a <span>, and it should fix the issue:

<span>{{myDate | amTimeAgo:true}}</span>

If you have a few moments to send a pull request for the README with this fix, that would be great!

from ngx-moment.

kirbyt avatar kirbyt commented on July 4, 2024

Thanks, @urish.

I confirmed that replacing the <time> tag with<span> works. In fact, <span> isn't even needed. Last updated: {{myDate | amTimeAgo}} works fine.

I'll send you a PR for the README shortly.

Thanks again.

from ngx-moment.

Related Issues (20)

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.