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

Using ` symbol for concatenations in Angular 5

Discussão em 'Angular' iniciado por Mikhail, Maio 22, 2025.

  1. Mikhail

    Mikhail Guest

    On a new project, I've seen that someone is doing a string concatenation in components using the ` symbol (ASCII 96 or grave accent symbol):

    let a = `${this.SOME_CONSTANT}/some_string/${some_variable.some_property}`;


    Is this considered a normal practice in Angular 5 instead of using normal plusses? Isn't this a template creation operation thus should work slower?

    Continue reading...

Compartilhe esta Página