Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #87 from digitalgarage/patch-1
Browse files Browse the repository at this point in the history
Update README.md to cover search-placeholder attribute
  • Loading branch information
etodanik committed Dec 24, 2016
2 parents 3a9a818 + 7308295 commit 0cf3700
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ angular.module('myApp', [
```

That's pretty much it. Now you can use the directive like so:
`<ion-google-place placeholder="Enter an address, Apt# and ZIP" ng-model="location" />`
`<ion-google-place placeholder="Enter an address, Apt# and ZIP" ng-model="location" search-placeholder="Enter an address, Apt# and ZIP"/>`

The main placeholder attribute is for the placeholder text in the view. The `search-placeholder` attribute customises the placeholder in the actual entry popup.

You can in this version have the current location by adding to the directive "ion-google-place" the attribute currentLocation to true.

example: `<ion-google-place placeholder="Enter an address, Apt# and ZIP" ng-model="location" current-location="true" />`

the acceptable value fot the attribute currentLocation are true or false.
the acceptable value fot the attribute currentLocation are true or false.

0 comments on commit 0cf3700

Please sign in to comment.