1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

new Date with @let syntax

Discussão em 'Angular' iniciado por tlzg, Setembro 15, 2024.

  1. tlzg

    tlzg Guest

    Using angular 18.1. I write in template:

    @let formattedDate = new Date(ISODateString);


    and I get an error:

    Parser Error: Unexpected token 'Date' at column 5 in [new Date(ISODateString)]


    How to make an instance of a date in template using @let?

    Continue reading...

Compartilhe esta Página