gauravsoni119 / ng2-tel-input

MIT License
56 stars 57 forks source link

angular6 ionic4 - ng2TelInputOptions #19

Open CoDrie opened 6 years ago

CoDrie commented 6 years ago

Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'ng2TelInputOptions' since it isn't a known property of 'input'. (" <input type="text" ng2TelInput [ERROR ->][ng2TelInputOptions]="{initialCountry: 'in'}" (hasError)="hasError($event)" (ng2TelOutput)="getNu"):

will there be an update for new ionic/angular version?

vintots commented 6 years ago

How do you import the library in your Ionic App ?

dylan-westbury commented 5 years ago

issue with ionicv4 too, even with importing module in app.module

dylan-westbury commented 5 years ago

I was able to get this to work with Ionic v4 by loading it directly into the module that was lazy loading the component that used the library, as opposed to app.module.

e.g. importing in onboarding.module.ts, as opposed to app.module.ts

Use a input, not an ion-input in the html

Pretty sure I tried before, but looks like it's working now.