
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@yuvarajv/ngx-google-places-autocomplete
Advanced tools
This module is a wrapper for Google Places Autocomplete js library.
This module is a wrapper for Google Places Autocomplete js library.
This project code inherited from https://github.com/skynet2/ngx-google-places-autocomplete to make it work better with angular 13.x
npm i @yuvarajv/ngx-google-places-autocomplete
yarn add @yuvarajv/ngx-google-places-autocomplete
<script src="https://maps.googleapis.com/maps/api/js?key=<Your API KEY>&libraries=places&language=en"></script>
import { GooglePlaceModule } from "@yuvarajv/ngx-google-places-autocomplete";
@NgModule({
imports: [GooglePlaceModule, BrowserModule, FormsModule, ...],
....
})
<input ngx-google-places-autocomplete [options]='options' #placesRef="ngx-places" (onAddressChange)="handleAddressChange($event)"/>
@ViewChild("placesRef") placesRef : GooglePlaceDirective;
public handleAddressChange(address: Address) {
// Do some stuff
}
Refer to original google maps api - https://developers.google.com/maps/documentation/javascript/places-autocomplete Options object - https://github.com/skynet2/ngx-google-places-autocomplete/blob/master/src/objects/options/options.ts Google doc for Options : https://developers.google.com/maps/documentation/javascript/reference/places-widget#AutocompleteOptions Example :
[options]="{
types: [],
componentRestrictions: { country: 'UA' }
}"
Please feel free to declare issues or contribute: https://github.com/shivarajnaidu/ngx-google-places-autocomplete
This library was generated with Angular CLI version 13.3.0.
Run ng generate component component-name --project ngx-google-places-autocomplete
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-google-places-autocomplete
.
Note: Don't forget to add
--project ngx-google-places-autocomplete
or else it will be added to the default project in yourangular.json
file.
Run ng build ngx-google-places-autocomplete
to build the project. The build artifacts will be stored in the dist/
directory.
After building your library with ng build ngx-google-places-autocomplete
, go to the dist folder cd dist/ngx-google-places-autocomplete
and run npm publish
.
Run ng test ngx-google-places-autocomplete
to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
FAQs
This module is a wrapper for Google Places Autocomplete js library.
The npm package @yuvarajv/ngx-google-places-autocomplete receives a total of 59 weekly downloads. As such, @yuvarajv/ngx-google-places-autocomplete popularity was classified as not popular.
We found that @yuvarajv/ngx-google-places-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.