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

Creating a Google Places Autocomplete Add-On for Angular-Schema-Form #920

Open
GenyaB opened this issue Aug 23, 2017 · 3 comments
Open

Creating a Google Places Autocomplete Add-On for Angular-Schema-Form #920

GenyaB opened this issue Aug 23, 2017 · 3 comments

Comments

@GenyaB
Copy link

GenyaB commented Aug 23, 2017

Hi,

I am trying to create an add-on that adds g-places-autocomplete to the input tag based on this library:
https://github.com/kuhnza/angular-google-places-autocomplete

I'm not sure if I am executing the instructions properly or what I am doing wrong.

Here is a plunker I made:
https://plnkr.co/edit/J1Jhe3kHLICPGkARX000

All that's supposed to happen is that when the user starts typing the google places autocomplete should appear (as it does if added normally to an input tag).

At the moment all that appears is your standard text input.

Here is how I am adding it to my form:
{
"key": "googleplace",
"type": "gplace"
}

Here is how I am adding it to my schema:
{
"title": 'googleplace',
"type": "string",
"x-schema-form": {
"type": "gplace",
"placeholder": "Start Typing..."
}
};

@json-schema-form/angular-schema-form-lead

@Anthropic
Copy link
Member

@GenyaB the plunker doesn't include a form tag in the index, is there content missing from the plunker?

@GenyaB
Copy link
Author

GenyaB commented Aug 24, 2017

@Anthropic Yeah sorry I left that out. Will add it now.

@GenyaB
Copy link
Author

GenyaB commented Aug 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants