Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I set an ID for the input? #23

Open
bostondevin opened this issue Mar 17, 2018 · 0 comments
Open

How do I set an ID for the input? #23

bostondevin opened this issue Mar 17, 2018 · 0 comments

Comments

@bostondevin
Copy link

I'm trying to attach a label to this for accessibility so we need to be able to set the ID of the input the int-phone-prefix is producing. Ideally, something that would work like this:

    <div [formGroup]="form">
      <label for="input-{{_data.mappedId}}">{{label}}</label>
      <int-phone-prefix [locale]="'es'" [formControlName]="_data.mappedId" id="input-{{_data.mappedId}}"></int-phone-prefix>
    </div>`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant