Uncaught (in promise): Error: Template parse errors: IN Angular 6











up vote
0
down vote

favorite












I am making a phone number validation with the country code in the angular application. As I am new to this topic I got some error and I need some help I followed "ngx-intl-tel-input" International Telephone Input and the Link is "
and the documentation available here documentation






h2 {
margin: 40px 10px;
}

.avatar {
margin-left: 100px;
border-radius: 50%;
overflow: hidden;
border: 10px solid white;
}

.marquee {
background: #ff5d5d;
min-height: 250px;
padding: 20px;
color: white;
align-items: center;
display: flex;
}

.marquee h1 {
text-align: center;
font-size: 52px;
font-family: 'Baloo', cursive;
}

span {
margin-left: 50px;
}

 <div class="container">
<div class="container">
<h2>Standard Usage</h2>
<ngx-intl-tel-input [(value)]="phone_number_standard" [preferredCountries]="preferredCountries"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number_standard}}
</div>
<div class="container">
<h2>Preferred Countries</h2>
<!-- <ngx-intl-tel-input [(value)]="phone_number" [preferredCountries]="phone_number_preffered"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number}} -->
</div>
</div>





error Log`core.js:1673 ERROR Error: Uncaught (in promise): Error: Template parse errors:


Can't bind to 'value' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("


Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->]

Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->])
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at syntaxError (compiler.js:1021)
at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
at compiler.js:23948
at Set.forEach ()
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:3811)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)`








share|improve this question






















  • Did you import both BsDropdownModule and NgxIntlTelInputModule as described here?
    – GCSDC
    Nov 22 at 3:51










  • It should be imported in CountryCodePageModule
    – yurzui
    Nov 22 at 4:22










  • Yes I added both
    – mad
    Nov 22 at 7:39















up vote
0
down vote

favorite












I am making a phone number validation with the country code in the angular application. As I am new to this topic I got some error and I need some help I followed "ngx-intl-tel-input" International Telephone Input and the Link is "
and the documentation available here documentation






h2 {
margin: 40px 10px;
}

.avatar {
margin-left: 100px;
border-radius: 50%;
overflow: hidden;
border: 10px solid white;
}

.marquee {
background: #ff5d5d;
min-height: 250px;
padding: 20px;
color: white;
align-items: center;
display: flex;
}

.marquee h1 {
text-align: center;
font-size: 52px;
font-family: 'Baloo', cursive;
}

span {
margin-left: 50px;
}

 <div class="container">
<div class="container">
<h2>Standard Usage</h2>
<ngx-intl-tel-input [(value)]="phone_number_standard" [preferredCountries]="preferredCountries"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number_standard}}
</div>
<div class="container">
<h2>Preferred Countries</h2>
<!-- <ngx-intl-tel-input [(value)]="phone_number" [preferredCountries]="phone_number_preffered"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number}} -->
</div>
</div>





error Log`core.js:1673 ERROR Error: Uncaught (in promise): Error: Template parse errors:


Can't bind to 'value' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("


Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->]

Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->])
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at syntaxError (compiler.js:1021)
at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
at compiler.js:23948
at Set.forEach ()
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:3811)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)`








share|improve this question






















  • Did you import both BsDropdownModule and NgxIntlTelInputModule as described here?
    – GCSDC
    Nov 22 at 3:51










  • It should be imported in CountryCodePageModule
    – yurzui
    Nov 22 at 4:22










  • Yes I added both
    – mad
    Nov 22 at 7:39













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am making a phone number validation with the country code in the angular application. As I am new to this topic I got some error and I need some help I followed "ngx-intl-tel-input" International Telephone Input and the Link is "
and the documentation available here documentation






h2 {
margin: 40px 10px;
}

.avatar {
margin-left: 100px;
border-radius: 50%;
overflow: hidden;
border: 10px solid white;
}

.marquee {
background: #ff5d5d;
min-height: 250px;
padding: 20px;
color: white;
align-items: center;
display: flex;
}

.marquee h1 {
text-align: center;
font-size: 52px;
font-family: 'Baloo', cursive;
}

span {
margin-left: 50px;
}

 <div class="container">
<div class="container">
<h2>Standard Usage</h2>
<ngx-intl-tel-input [(value)]="phone_number_standard" [preferredCountries]="preferredCountries"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number_standard}}
</div>
<div class="container">
<h2>Preferred Countries</h2>
<!-- <ngx-intl-tel-input [(value)]="phone_number" [preferredCountries]="phone_number_preffered"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number}} -->
</div>
</div>





error Log`core.js:1673 ERROR Error: Uncaught (in promise): Error: Template parse errors:


Can't bind to 'value' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("


Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->]

Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->])
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at syntaxError (compiler.js:1021)
at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
at compiler.js:23948
at Set.forEach ()
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:3811)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)`








share|improve this question













I am making a phone number validation with the country code in the angular application. As I am new to this topic I got some error and I need some help I followed "ngx-intl-tel-input" International Telephone Input and the Link is "
and the documentation available here documentation






h2 {
margin: 40px 10px;
}

.avatar {
margin-left: 100px;
border-radius: 50%;
overflow: hidden;
border: 10px solid white;
}

.marquee {
background: #ff5d5d;
min-height: 250px;
padding: 20px;
color: white;
align-items: center;
display: flex;
}

.marquee h1 {
text-align: center;
font-size: 52px;
font-family: 'Baloo', cursive;
}

span {
margin-left: 50px;
}

 <div class="container">
<div class="container">
<h2>Standard Usage</h2>
<ngx-intl-tel-input [(value)]="phone_number_standard" [preferredCountries]="preferredCountries"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number_standard}}
</div>
<div class="container">
<h2>Preferred Countries</h2>
<!-- <ngx-intl-tel-input [(value)]="phone_number" [preferredCountries]="phone_number_preffered"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number}} -->
</div>
</div>





error Log`core.js:1673 ERROR Error: Uncaught (in promise): Error: Template parse errors:


Can't bind to 'value' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("


Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->]

Standard Usage


][(value)]="phone_number_standard" [preferredCountries]="preferredCountries">
"): ng:///CountryCodePageModule/CountryCodePage.html@18:26
Can't bind to 'preferredCountries' since it isn't a known property of 'ngx-intl-tel-input'.
1. If 'ngx-intl-tel-input' is an Angular component and it has 'preferredCountries' input, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("ntainer">

Standard Usage


][preferredCountries]="preferredCountries">
Phone number : {{p"): ng:///CountryCodePageModule/CountryCodePage.html@18:60
'ngx-intl-tel-input' is not a known element:
1. If 'ngx-intl-tel-input' is an Angular component, then verify that it is part of this module.
2. If 'ngx-intl-tel-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

Standard Usage


[ERROR ->])
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at syntaxError (compiler.js:1021)
at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
at compiler.js:23948
at Set.forEach ()
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
at compiler.js:23858
at Object.then (compiler.js:1012)
at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:3811)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)`




h2 {
margin: 40px 10px;
}

.avatar {
margin-left: 100px;
border-radius: 50%;
overflow: hidden;
border: 10px solid white;
}

.marquee {
background: #ff5d5d;
min-height: 250px;
padding: 20px;
color: white;
align-items: center;
display: flex;
}

.marquee h1 {
text-align: center;
font-size: 52px;
font-family: 'Baloo', cursive;
}

span {
margin-left: 50px;
}

 <div class="container">
<div class="container">
<h2>Standard Usage</h2>
<ngx-intl-tel-input [(value)]="phone_number_standard" [preferredCountries]="preferredCountries"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number_standard}}
</div>
<div class="container">
<h2>Preferred Countries</h2>
<!-- <ngx-intl-tel-input [(value)]="phone_number" [preferredCountries]="phone_number_preffered"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number}} -->
</div>
</div>





h2 {
margin: 40px 10px;
}

.avatar {
margin-left: 100px;
border-radius: 50%;
overflow: hidden;
border: 10px solid white;
}

.marquee {
background: #ff5d5d;
min-height: 250px;
padding: 20px;
color: white;
align-items: center;
display: flex;
}

.marquee h1 {
text-align: center;
font-size: 52px;
font-family: 'Baloo', cursive;
}

span {
margin-left: 50px;
}

 <div class="container">
<div class="container">
<h2>Standard Usage</h2>
<ngx-intl-tel-input [(value)]="phone_number_standard" [preferredCountries]="preferredCountries"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number_standard}}
</div>
<div class="container">
<h2>Preferred Countries</h2>
<!-- <ngx-intl-tel-input [(value)]="phone_number" [preferredCountries]="phone_number_preffered"></ngx-intl-tel-input>
<span>Phone number : </span>{{phone_number}} -->
</div>
</div>






html angular typescript






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 at 3:35









mad

1




1












  • Did you import both BsDropdownModule and NgxIntlTelInputModule as described here?
    – GCSDC
    Nov 22 at 3:51










  • It should be imported in CountryCodePageModule
    – yurzui
    Nov 22 at 4:22










  • Yes I added both
    – mad
    Nov 22 at 7:39


















  • Did you import both BsDropdownModule and NgxIntlTelInputModule as described here?
    – GCSDC
    Nov 22 at 3:51










  • It should be imported in CountryCodePageModule
    – yurzui
    Nov 22 at 4:22










  • Yes I added both
    – mad
    Nov 22 at 7:39
















Did you import both BsDropdownModule and NgxIntlTelInputModule as described here?
– GCSDC
Nov 22 at 3:51




Did you import both BsDropdownModule and NgxIntlTelInputModule as described here?
– GCSDC
Nov 22 at 3:51












It should be imported in CountryCodePageModule
– yurzui
Nov 22 at 4:22




It should be imported in CountryCodePageModule
– yurzui
Nov 22 at 4:22












Yes I added both
– mad
Nov 22 at 7:39




Yes I added both
– mad
Nov 22 at 7:39

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53423511%2funcaught-in-promise-error-template-parse-errors-in-angular-6%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53423511%2funcaught-in-promise-error-template-parse-errors-in-angular-6%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...