angular-google-place icon indicating copy to clipboard operation
angular-google-place copied to clipboard

Documentation: use types instead of type

Open srukali opened this issue 6 years ago • 0 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/psykolm22/angular-google-place/blob/master/CONTRIBUTING.md#question

Current behavior

Currently the documentation says to use type within the options params.

var options = {
  type: ['(regions)']
}

Expected behavior

The correct way to use the Google places API is by using types:

var options = {
  types: ['(regions)']
}

https://developers.google.com/places/supported_types

What is the motivation / use case for changing the behavior?

Saving time debugging :)

Environment


Angular version: 5.2
Angular Google place version : 0.0.3

srukali avatar Oct 23 '18 21:10 srukali