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

Angular 14 - Type '"text"' is not assignable to type 'InputTypes' #888

Open
negue opened this issue Jun 27, 2022 · 0 comments
Open

Angular 14 - Type '"text"' is not assignable to type 'InputTypes' #888

negue opened this issue Jun 27, 2022 · 0 comments

Comments

@negue
Copy link

negue commented Jun 27, 2022

probably related to #590

after installing all libraries mentioned in #590 it compiled first, then adding only

<form action="#">
  <ngx-input
    type="text"
    [label]="'Username'"
    [(ngModel)]="usernameValue"
    name="input5"
    [required]="true"
    [requiredIndicator]="false"
    [hint]="'Enter a Username'">
  </ngx-input>
  <ngx-input
    type="password"
    [label]="'Password'"
    [(ngModel)]="passwordValue"
    name="input6"
    [required]="true"
    [passwordToggleEnabled]="true"
    [hint]="'Enter a password'">
  </ngx-input>
  <br />
  <button class="btn" type="submit">Login</button>
</form>

You receive:

error TS2322: Type '"text"' is not assignable to type 'InputTypes'.
error TS2322: Type '"password"' is not assignable to type 'InputTypes'.
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