How can I set input placeholder text in component file in Angular

Discussão em 'Angular' iniciado por chuckd, Outubro 27, 2024.

  1. chuckd

    chuckd Guest

    I'm new to Angular and Typescript. I have the input with a placeholder below, is there a way to change the placeholder text from my component file?

    <input id="city" class="form-control" placeholder="City or Town">

    Continue reading...

Compartilhe esta Página