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

Wrong service request or missing information in README? #15

Open
WuglyakBolgoink opened this issue Jul 15, 2020 · 0 comments
Open

Wrong service request or missing information in README? #15

WuglyakBolgoink opened this issue Jul 15, 2020 · 0 comments

Comments

@WuglyakBolgoink
Copy link

WuglyakBolgoink commented Jul 15, 2020

Hallo @kolkov

if I use jQuery example, then this work fine!

$("#address").suggestions({
  // Замените на свой API-ключ
  token: "7fd18aaabd7d53ffa4846e4521c1f736c13490eb",
  type: "ADDRESS",
  geoLocation: false,
  constraints: {
    locations: { country: "*" },
    label: ""
  }
});

if I use same config with angular component I got only russian addresses, because...

request in jQuery:

{
  "locations": [
    {
      "country": "*"
    }
  ],
  "restrict_value": false,
  "from_bound": {
    "value": "country"
  },
  "to_bound": {
    "value": "country"
  },
  "query": "ber",
  "count": 5,
  "language": "en"
}

request in ngx-dadata component:

{
  "query": "ber"
}

why we have this different?

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

1 participant