-
Notifications
You must be signed in to change notification settings - Fork 14
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
can't bint to options #7
Comments
From @larschla on April 23, 2017 9:7 Any news on this. I'm also getting this error. |
it's still same with angular-google-place now ? |
I also have this issue. Upgrade from ng2-google-place-autocomplete. Angular 5.2.9/CLI 1.7.4 What is the status of this? In component .ts file:
In component template
|
From @andikas on February 22, 2017 11:25
Hi,
need Help. I got an issue when I use this code.
I've follow the instalation steps, but still got this error.
Igot this error.
Unhandled Promise rejection: Template parse errors:
Can't bind to 'options' since it isn't a known property of 'input'. (" class="input-group">
<input type="text" size="100" [(ngModel)] = "address"
[ERROR ->][options]='options'
(setAddress) = "getAddress($event)"
(street_number) = 'street_number=$event'"): HomeComponent@40:1 ; Zone: ; Task: Promise.then ; Value:
Any suggestion?
Here's my module
`import {GooglePlaceModule} from 'ng2-google-place-autocomplete';
export const appRoutes: Routes = [
{ path: '', component: AppComponent, children:[
{ path: '', component: NavbarComponent, outlet: 'navbar'},
{ path: '', component: FooterComponent, outlet: 'footer'},
{ path: '', component: CopyrightComponent, outlet: 'copyright'},
{ path: '', component: HomeComponent},
{ path : 'property', component: PropertyComponent}
] }
];
@NgModule({
imports: [
BrowserModule,
CarouselModule,
CommonModule,
FormsModule,
HttpModule,
GooglePlaceModule,
DropdownModule.forRoot(), `
My Component
export class AppComponent { public options = {types: ['address'],componentRestrictions: { country: 'FR' }} getAddress(place:Object) { console.log("Address", place); } }
and my input form same as with the tutorial.
Copied from original issue: psykolm22/ng2-google-place-autocomplete#11
The text was updated successfully, but these errors were encountered: