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

Add [(ngModel)] for <mgl-control mglGeocoder> #37

Closed
ciukstar opened this issue May 19, 2018 · 1 comment
Closed

Add [(ngModel)] for <mgl-control mglGeocoder> #37

ciukstar opened this issue May 19, 2018 · 1 comment

Comments

@ciukstar
Copy link

ciukstar commented May 19, 2018

Is there a way to specify the model for <mgl-control mglGeocoder>?

Scenario:

  1. User selects an address from a dialog.

dialogRef.afterClosed().subscribe(addr => {
this.geocoderInput = addr;
/* this.geocoder.query(addr); */
});


Template:
`<mgl-control mglGeocoder [(ngModel)]="geocoderInput">`
@Wykks Wykks closed this as completed in dfd1cd2 May 21, 2018
@Wykks
Copy link
Owner

Wykks commented May 21, 2018

Hi!

I added searchInput as input of mglGeocoder, which directly query after changes.
(I can't do two way binding, there's no getInput in https://github.com/mapbox/mapbox-gl-geocoder)

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

2 participants