Angular String interpolation in attribute template

Discussão em 'Angular' iniciado por Pasalino, Agosto 6, 2025.

  1. Pasalino

    Pasalino Guest

    What is the best practice for string interpolation in attribute in Angular 6?

    I have this code:

    <div class="container" [ngStyle]="{'grid-template-rows': 'repeat(' + value + ', 1fr) [last-line]'}">

    I want to use something like 'repeat(${value})' with backtick

    Continue reading...

Compartilhe esta Página