jvandemo / jvandemo/angularjs-google-maps

Restrict Component is not working

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I am trying to restrict cities of Australia but unable to work here is my code.

From

and here is the controller:
function ShippingCalculatorController ($scope) {
var shipping = this;

shipping.placesOptions = {
componentRestrictions: {country: 'au'},
strictBounds: true
};

I have also tried

$scope.placesOptions = {
componentRestrictions: {country: 'au'},
strictBounds: true
};

but not working.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the template's gm-places-autocomplete binding and ShippingCalculatorController's placesOptions entry point shown in the issue. Reproduce the autocomplete behavior with the displayed componentRestrictions and strictBounds settings; done means Australian city suggestions are restricted as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.