I am using intl-tel-input angular 4 for validate phone number ,when I added this its showing country code with phone number but if enter wrong phone its not showing error message. For this I am using this code :-
<ngx-intl-tel-input name="phone" id ="phone" [(value)]="model.phone" required="required" [preferredCountries]="preferredCountries" ></ngx-intl-tel-input>
this is my html file code and here my component.ts file code :-
$("#phone").intlTelInput({
utilsScript: "../../build/js/utils.js"
});
when I am added this it showing error message:-
"core.es5.js:1084 ERROR Error: Uncaught (in promise): TypeError: $(...).intlTelInput is not a function"
for this I am tried this code but no luck :-
https://jsbin.com/yacokiyece/edit?html,css,js,output
this is git code which I follow :- https://github.com/webcat12345/ngx-intl-tel-input