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

How to display the "@" symbol as a string in Angular template syntax? [duplicate]

Discussão em 'Angular' iniciado por Mo D Genesis, Maio 22, 2025.

  1. Mo D Genesis

    Mo D Genesis Guest

    I want to display the "@" character as a regular string in the HTML.

    the following gives an error Unrecognized block @yourcompany.ngtsc(-995002

    <span>info@yourcompany.com</span>


    I could do

    <span>info{{ '@' }}yourcompany.com</span>


    or even

    <span>{{ 'info@yourcompany.com' }}</span>


    What is the correct way to output the "@" symbol in an Angular template so that it displays as a regular character?

    Continue reading...

Compartilhe esta Página