Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@angular-material-extensions/google-maps-autocomplete

Autocomplete input component and directive for google-maps built with angular and material design

angular, material design, google maps, autocomplete, places, locations, parse, street name, location, country, city

readme

angular-material-extensions's logo

@angular-material-extensions/google-maps-autocomplete - Autocomplete input component for google-maps built with angular material design

npm version npm demo Join the chat at https://gitter.im/angular-material-extensions/Lobby Coverage Status Build Status CircleCI branch Greenkeeper Badge license Awesome

@angular-material-extensions/google-maps-autocomplete

@angular-material-extensions/google-maps-autocomplete

Please use lib v8 only with angular v15

Built by and for developers :heart:

Do you have any question or suggestion ? Please do not hesitate to contact us! Alternatively, provide a PR | open an appropriate issue here

If did you like this project, support angular-material-extensions by starring :star: and sharing it :loudspeaker:

Table of Contents

Demo

View all the directives and components in action at https://angular-material-extensions.github.io/google-maps-autocomplete

Dependencies

  • Angular (requires Angular latest | we are using already v16 ;)

optional

npm i -D @types/googlemaps 

Installation

If Angular Material Design is not setup, just run ng add @angular/material learn more

Now add the library via the angular schematics and everything will be setup for you

ng add @angular-material-extensions/google-maps-autocomplete

2. Install via npm. (Alternative)

Now install @angular-material-extensions/google-maps-autocomplete via:

npm install --save @angular-material-extensions/google-maps-autocomplete

Requirements (peer dependencies):

for the ui input component, please consider installing the following packages

ng add @angular/material  

Additional requirements Theme (Material Design)


Once installed you need to import the main module:

import {MatGoogleMapsAutocompleteModule} from '@angular-material-extensions/google-maps-autocomplete';

The only remaining part is to list the imported module in your application module. The exact method will be slightly different for the root (top-level) module for which you should end up with the code similar to ( notice MatGoogleMapsAutocompleteModule.forRoot()):

import {MatGoogleMapsAutocompleteModule} from '@angular-material-extensions/google-maps-autocomplete';

@NgModule({
  declarations: [AppComponent, ...],
  imports: [
    MatGoogleMapsAutocompleteModule.forRoot('YOUR_GOOGLE_MAPS_API_KEY'), ...],
  bootstrap: [AppComponent]
})
export class AppModule {
}

Other modules in your application can simply import MatGoogleMapsAutocompleteModule:

import {MatGoogleMapsAutocompleteModule} from '@angular-material-extensions/google-maps-autocomplete';

@NgModule({
  declarations: [OtherComponent, ...],
  imports: [
    MatGoogleMapsAutocompleteModule, ...],
})
export class OtherModule {
}

Usage

As directive

add matGoogleMapsAutocomplete to your target html input element to enable the google maps autocomplete api as feature


<mat-form-field>
  <mat-label>Address << using the directive >></mat-label>
  <input matInput
         matGoogleMapsAutocomplete
         [country]="de"
         (onAutocompleteSelected)="onAutocompleteSelected($event)"
         (onLocationSelected)="onLocationSelected($event)">
</mat-form-field>

As components

or alternatively use mat-google-maps-auto-complete, the UI wrapper

add mat-google-maps-auto-complete element to your template

mat-google-maps-auto-complete


<mat-google-maps-autocomplete [appearance]="appearance.OUTLINE"
                              (onAutocompleteSelected)="onAutocompleteSelected($event)"
                              (onLocationSelected)="onLocationSelected($event)">
</mat-google-maps-autocomplete>

A customized mat-google-maps-autocomplete


<mat-google-maps-autocomplete country="us"
                              type="address"
                              (onAutocompleteSelected)="onAutocompleteSelected($event)"
                              (onLocationSelected)="onLocationSelected($event)">
</mat-google-maps-autocomplete>

combine the result of the mat-google-maps-autocomplete with a google map instance


<div class="container" fxLayout="column" fxLayoutAlign="center">

  <div fxFlex fxFlexAlign="center"
       class="autocomplete-container"
       [ngStyle.xs]="{'min-width.%': 100}"
       [ngStyle.sm]="{'width.%': 70}">
    <mat-google-maps-autocomplete (onAutocompleteSelected)="onAutocompleteSelected($event)"
                                  (onLocationSelected)="onLocationSelected($event)"
                                  (onGermanAddressMapped)="onGermanAddressMapped($event)">
    </mat-google-maps-autocomplete>
  </div>

</div>

in your component, the code will be similar to -->

import {Component, OnInit, ViewEncapsulation} from '@angular/core';
import {Title} from '@angular/platform-browser';
import {Location, Appearance, GermanAddress} from '@angular-material-extensions/google-maps-autocomplete';
import {} from '@types/googlemaps';
import PlaceResult = google.maps.places.PlaceResult;

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss'],
  encapsulation: ViewEncapsulation.None,
})
export class HomeComponent implements OnInit {

  public appearance = Appearance;
  public zoom: number;
  public latitude: number;
  public longitude: number;
  public selectedAddress: PlaceResult;

  constructor(private titleService: Title) {
  }

  ngOnInit() {
    this.titleService.setTitle('Home | @angular-material-extensions/google-maps-autocomplete');

    this.zoom = 10;
    this.latitude = 52.520008;
    this.longitude = 13.404954;

    this.setCurrentPosition();

  }

  private setCurrentPosition() {
    if ('geolocation' in navigator) {
      navigator.geolocation.getCurrentPosition((position) => {
        this.latitude = position.coords.latitude;
        this.longitude = position.coords.longitude;
        this.zoom = 12;
      });
    }
  }

  onAutocompleteSelected(result: PlaceResult) {
    console.log('onAutocompleteSelected: ', result);
  }

  onLocationSelected(location: Location) {
    console.log('onLocationSelected: ', location);
    this.latitude = location.latitude;
    this.longitude = location.longitude;
  }

  onGermanAddressMapped($event: GermanAddress) {
    console.log('onGermanAddressMapped', $event);
  }

}

Reactive Forms Example


<form [formGroup]="addressFormGroup">
  <mat-search-google-maps-autocomplete formControlName="address">
  </mat-search-google-maps-autocomplete>

  // OR

  <mat-google-maps-autocomplete formControlName="address">
  </mat-google-maps-autocomplete>

</form>

import {Component, OnInit} from '@angular/core';
import {FormControl, FormGroup} from '@angular/forms';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {

  addressFormGroup: FormGroup;

  ngOnInit(): void {
    this.addressFormGroup = new FormGroup({
      address: new FormControl(),
    });

    this.addressFormGroup.get('address').valueChanges.subscribe(value => console.log('value changed', value))
  }
}

API - for more info please visit the official documentation Maps JavaScript API

matGoogleMapsAutocomplete

option bind type default description
value Input() PlaceResult ; -
address Input() PlaceResult string; -
country Input() string string[]; -
placeIdOnly Input() boolean - can be used to instruct the Autocomplete widget to retrieve only Place IDs. On calling getPlace() on the Autocomplete object, the PlaceResult made available will only have the place id, types and name properties set. You can use the returned place ID with calls to the Places, Geocoding, Directions or Distance Matrix services.
strictBounds Input() boolean - is a boolean specifying whether the API must return only those places that are strictly within the region defined by the given bounds. The API does not return results outside this region even if they match the user input.
types Input() string[] - An array of types specifies an explicit type or a type collection, as listed in the supported types below. If nothing is specified, all types are returned. In general only a single type is allowed. The exception is that you can safely mix the geocode and establishment types, but note that this will have the same effect as specifying no types. Supported types are listed below.
type Input() string -
autoCompleteOptions Input() AutocompleteOptions - all above inputs in one object! The passed data to this object will be merged with the input if they exists
onChange Output() PlaceResult string null
onAutocompleteSelected Output() PlaceResult - the event will be fired when a place has been selected via the google maps autocomplete component
onGermanAddressMapped Output() GermanAddress - the event will be fired when a place has been selected and mapped to the german address interface
onLocationSelected Output() Location - the event will be fired when a place has been selected via the google maps autocomplete component

Supported Types

type description
geocode instructs the Places service to return only geocoding results, rather than business results.
address instructs the Places service to return only geocoding results with a precise address.
establishment instructs the Places service to return only business results.
regions instructs the Places service to return any result matching the following types: locality, sublocality, postal_code, country, administrative_area1, administrative_area2
cities instructs the Places service to return results that match either locality or administrative_area3.

mat-google-maps-autocomplete

everything included in matGoogleMapsAutocomplete + the following

option bind type default description
addressLabelText Input() string; Address using the component self explanatory
placeholderText Input() string; Please enter the address self explanatory
requiredErrorText Input() string; The address is required self explanatory
invalidErrorText Input() string; The address is not valid self explanatory
appearance Input() Appearance string; Appearance.STANDARD

mat-search-google-maps-autocomplete

option bind type default description
searchBarAppearance Input() Appearance string; Appearance.STANDARD
appearance Input() Appearance string; Appearance.STANDARD
searchAddressLabel Input() string; Search Address input label
streetNameLabel Input() string; Street input label
streetNumberLabel Input() string; Nr. input label
postalCodeLabel Input() string; PLZ input label
vicinityLabel Input() string; Locality input label
localityLabel Input() string; Locality input label
showVicinity Input() boolean; false input label - whether to display the vecinity
readonly Input() boolean; false readonly input
disableSearch Input() boolean; false disabled users to search a place
value Input() GermanAddress; - the initial value of the component
country Input() string string[]; -
placeIdOnly Input() boolean - can be used to instruct the Autocomplete widget to retrieve only Place IDs. On calling getPlace() on the Autocomplete object, the PlaceResult made available will only have the place id, types and name properties set. You can use the returned place ID with calls to the Places, Geocoding, Directions or Distance Matrix services.
strictBounds Input() boolean - is a boolean specifying whether the API must return only those places that are strictly within the region defined by the given bounds. The API does not return results outside this region even if they match the user input.
types Input() string[] - An array of types specifies an explicit type or a type collection, as listed in the supported types below. If nothing is specified, all types are returned. In general only a single type is allowed. The exception is that you can safely mix the geocode and establishment types, but note that this will have the same effect as specifying no types. Supported types are listed below.
type Input() string -
onGermanAddressMapped Output() EventEmitter<GermanAddress> string; Appearance.STANDARD

@angular-material-extensions/google-maps-autocomplete


<mat-card>
  <mat-card-title>Auto Parse Address</mat-card-title>
  <mat-card-content>
    <!-- #######   here we go !! ######-->
    <mat-search-google-maps-autocomplete appearance="outline"
                                         country="de"
                                         (onGermanAddressMapped)="onGermanAddressMapped($event)">
      >
    </mat-search-google-maps-autocomplete>
  </mat-card-content>
</mat-card>
import {Appearance, GermanAddress, Location} from '@angular-material-extensions/google-maps-autocomplete';

onGermanAddressMapped($event;
:
GermanAddress;
)
{
  console.log('onGermanAddressMapped', $event);
}

Documentation

Please checkout the full documentation here or follow the official tutorial

Run Demo App Locally

$ git clone https://github.com/angular-material-extensions/google-maps-autocomplete.git
  • link the @angular-material-extensions/google-maps-autocomplete package
$ gulp link
  • navigate to the demo app directory, install the dependencies and serve the app
$ cd demo && npm i && npm start
  • the app is now hosted by http://localhost:4200/

Development

  1. clone this repo
  2. Install the dependencies by running npm i
  3. go to lib directory under projects/angular-material-extensions/google-maps-autocomplete
  4. build the library npm run build

Other Angular Libraries


Support

Built by and for developers :heart: we will help you :punch:


Who is using ngx-mailto? Awesome apps?

  1. Nahaus.de - Digitale und automatisierte Immobilienverwaltung Software für private Vermieter und Hausverwaltungen

Are you missing your project or you app? PR me to publish it on the README


License

Copyright (c) 2019-2024 Anthony Nahas. Licensed under the MIT License ( MIT)

angular-material-extensions's logo

changelog

16.3.1 (2024-03-14)

Bug Fixes

  • project: updated peer dep of zonejs (4b21992)

16.3.0 (2024-03-14)

Bug Fixes

  • project: removed agm core logic (5f3b656)

16.2.3 (2024-03-14)

Bug Fixes

  • project: removed agm core logic (2d3a536)

16.2.2 (2024-03-14)

16.2.1 (2024-03-14)

Bug Fixes

  • project: removed agm core logic (98030c3)

16.1.0 (2024-03-14)

Bug Fixes

  • project: minor (d1ab09b)
  • project: removed agm core logic (2253bb0)
  • project: removed agm core logic (dda725a)
  • project: upgraded angular to v16 (b5b1479)
  • project: upgraded angular to v16 (042acf6)

9.0.3 (2022-12-08)

Bug Fixes

  • project: solved problem with peer deps for flex-layout #328 (e034068)
  • project: upgraded angular deps (e1b624d)
  • project: upgraded angular material (efbf75e)

9.0.2 (2022-12-04)

Bug Fixes

  • project: upgraded angular cdk and material (ed8af45)
  • project: upgraded angular cdk and material (c04de57)
  • project: upgraded angular cli and core (5c357c9)

9.0.1 (2022-11-25)

Bug Fixes

  • project: adapted the readme (c65ec27)

9.0.0 (2022-11-25)

Bug Fixes

  • project: minor (46aaae8)
  • project: upgraded angular cli and core to v15 (0349f08)
  • project: upgraded angular material to v15 (9e66c77)
  • project: upgraded angular material to v15 (3774ee7)

  • fix(project): upgraded deps (f6e5931)

  • fix(project): upgraded angular and material (782a9b6)
  • fix(project): docs (ea1e37d)
  • fix(project): docs (4245bc8)

  • fix(project): upgraded angular material (7475144)

  • fix(project): upgraded angular core and cli (875bd36)
  • fix(project): upgraded angular core and cli (e3ed7d3)
  • fix(project): minor (30aecda)

  • fix(project): upgraded angular universal (6589d71)

  • fix(project): upgraded angular material (8155cb7)
  • fix(project): upgraded angular material (1c43348)
  • fix(project): upgraded angular (991896f)
  • fix(project): minor (5e8864c)
  • fix(project): minor (7f3365a)

  • fix(project): minor (148de46)

  • fix(project): updated deps (f1076e0)
  • docs(project): Updating CHANGELOG.md for v8.0.0 (b4f263e)
  • docs(project): Updating CHANGELOG.md for v8.0.0 (3063008)
  • fix(project): adapted the ivy config to publish the lib on npm (1fa3551)

  • docs(project): Updating CHANGELOG.md for v8.0.0 (3063008)

  • fix(project): adapted the ivy config to publish the lib on npm (1fa3551)

  • fix(project): adapted the ivy config to publish the lib on npm (1fa3551)

  • fix(project): bug fixed with validation (5fed9db)

  • fix(project): minor (5ddffb2)
  • fix(project): upgraded universal (22221de)
  • fix(project): upgraded angular material deps (4c898b3)
  • fix(project): upgraded angular deps (0ac70db)
  • fix(project): upgraded angular deps (ae74502)
  • fix(project): minor (75aded9)
  • fix(project): updated the lib (7432616)
  • fix(project): updated the lib (22a13fb)
  • fix(project): updated the lib (8f4d5da)

  • fix(project): updated the lib (d69deb5)

  • Merge pull request #326 from bittlerr/fix-address-components-error (4aaf185)
  • fix(lib): safe access address components (03f8b42)

  • fix(project): removed unwanted logs #324 (12bca04)

  • Merge remote-tracking branch 'origin/master' (7232435)

  • fix(project): minor (0ac2f2a)
  • docs(project): Updating CHANGELOG.md for v7.0.0 (57eafbd)
  • fix(project): upgraded unviversal express engine (28fb3fa)
  • fix(project): upgraded angular material from v12 to v13 (6f9a1ea)
  • fix(project): upgraded angular from v12 to v13 (78ab428)
  • fix(lib): parseGermanAddress is now public (8118eef)
  • Creating FUNDING.yml (e458f9b)

  • fix(project): upgraded unviversal express engine (28fb3fa)

  • fix(project): upgraded angular material from v12 to v13 (6f9a1ea)
  • fix(project): upgraded angular from v12 to v13 (78ab428)
  • fix(lib): parseGermanAddress is now public (8118eef)

  • fix(lib): adjusted the main directive's methods (f74f85e)

  • fix(lib): minor (d8eb106)
  • fix(lib): upgraded angular material to v12 (83e2dca)
  • fix(lib): upgraded angular to v12 (311e23b)
  • fix(lib): upgraded angular to v12 (593378b)
  • fix(lib): minor (f5ea8ea)

  • fix(lib): merged master (107c963)

  • fix(lib): improved the reactive forms mechanism (829a3f4)
  • fix(lib): updated the dependencies (a6c8e8e)
  • fix(lib): updated the dependencies (c438082)
  • fix(lib): updated the dependencies (4500a46)
  • Merge pull request #308 from andreialecu/fix-import (8edc4e5)
  • fix: rxjs deep import (f4d5f77)

  • feat(lib): added | searchBarAppearance input (ee112ee)

  • fix(lib): added custom input functionality for the search component (1195376)

  • docs(project): updated the reamde (a416d86)
  • fix(lib): updated angular and other depenencies (a3ccd21)

  • fix(lib): updated peer deps (ecbbd0d)

  • fix(lib): updated schematics related code (ad6afa0)
  • feat(lib): upgraded nguniversal to v11 (0e86ff0)
  • fix(lib): upgraded angular material to v11 (fdcff5e)
  • fix(lib): upgraded angular to v11 (4fb772c)

  • docs(project): minor (ae98312)

  • Merge pull request #298 from zacuke/master (38700f1)
  • update:build (b3a0f8c)
  • builder:test (867559c)
  • Update main.yml (1f71298)
  • Update main.yml (1d2520c)
  • Update main.yml (53f60ce)
  • Update main.yml (4aa393e)
  • Update main.yml (1bd9740)
  • Update main.yml (63eac65)
  • Update main.yml (118866e)
  • Create main.yml (6e5466b)
  • more :Test (67ac7cd)
  • remove dist and update a few pkg : test (e3cc032)
  • trying dist (cd6d2c0)
  • angular 10 (effb359)

  • fix(lib): support default value in mat-search-google-maps-autocomplete (e345c4d)

  • fix(lib): updated angular to v9.1.12 (84c16e2)

  • fix(lib): support of reactive forms #99 #65 (6bd7196)

  • fix(lib): support of reactive forms #99 #65 (5536972)
  • fix(lib): updated angular to v9.1.7 (c41675e)
  • fix(lib): updated the dependencies (d600c25)
  • fix(lib): updated angular's version to v9.0.7 (268a32f)
  • docs(lib): minor fix in the readme #253 (c28a4f6)

4.0.1 (2020-02-10)

Bug Fixes

4.0.0 (2020-02-08)

Bug Fixes

  • lib: minor (056a850)
  • lib: updated the peer dependencies - angular v9 (33343c1)
  • lib: upgraded the lib to angular v9 (d6be89c)
  • lib: upgraded the lib to angular v9 + fixed the schematics (2dafcee)

3.2.0 (2020-01-23)

Bug Fixes

  • lib: updated dependencies (c8f08cb)
  • lib: updated dependencies (4d6f2a8)

Features

  • lib: ability to render an initial value of the search component (3d11853)

3.1.1 (2020-01-03)

Bug Fixes

  • app: support lat and lng properties for the german address (325345b)

3.1.0 (2020-01-03)

Features

  • project: add vicinity as option (898c17a)
  • project: added readonly input to the search component (46acaa1)

3.0.1 (2020-01-01)

Bug Fixes

  • project: minor (2212e00)
  • project: removed browseranimations import (5d6037c)
  • project: updated the homepage url (0203235)

3.0.0 (2020-01-01)

Bug Fixes

  • demo: removed the old demo app (d356d25)
  • package: added http-server packages (47debd1)
  • package: added release-it and compodoc packages (e37b0c7)
  • package: enhanced the demo app (5b00c6e)
  • package: improved ssr (02ef848)
  • package: improved the build process of the library (5c26591)
  • package: improved the demo app (a479304)
  • package: improved the new search component (2a99112)
  • package: minor (547536d)
  • package: removed forRoot() (f4bf604)
  • package: updated googlemaps types (78b2e63)
  • package: updated the project (9df8107)
  • project: updated the release script (f041c89)

Features

  • package: added new component mat-search-google-maps-autocomplete (bed820a)
  • package: added new germand addreess interface (83a5ab4)
  • package: customize the label in the search component (dc6e427)
  • package: integration of the new german address interface (defe0b0)
  • package: new event emitter onGermanAddressMapped (3ae431f)

2.4.0 (2020-01-01)

Bug Fixes

  • demo: removed the old demo app (d356d25)
  • package: added http-server packages (47debd1)
  • package: added release-it and compodoc packages (e37b0c7)
  • package: enhanced the demo app (5b00c6e)
  • package: improved ssr (02ef848)
  • package: improved the build process of the library (5c26591)
  • package: improved the demo app (a479304)
  • package: improved the new search component (2a99112)
  • package: minor (547536d)
  • package: removed forRoot() (f4bf604)
  • package: updated googlemaps types (78b2e63)
  • package: updated the project (9df8107)
  • project: updated the release script (f041c89)

Features

  • package: added new component mat-search-google-maps-autocomplete (bed820a)
  • package: added new germand addreess interface (83a5ab4)
  • package: customize the label in the search component (dc6e427)
  • package: integration of the new german address interface (defe0b0)
  • package: new event emitter onGermanAddressMapped (3ae431f)

2.1.0 (2019-12-30)

Bug Fixes

  • demo: removed the old demo app (d356d25)
  • package: added http-server packages (47debd1)
  • package: added release-it and compodoc packages (e37b0c7)
  • package: enhanced the demo app (5b00c6e)
  • package: improved ssr (02ef848)
  • package: improved the build process of the library (5c26591)
  • package: improved the demo app (a479304)
  • package: improved the new search component (2a99112)
  • package: minor (547536d)
  • package: removed forRoot() (f4bf604)
  • package: updated googlemaps types (78b2e63)
  • package: updated the project (9df8107)

Features

  • package: added new component mat-search-google-maps-autocomplete (bed820a)
  • package: added new germand addreess interface (83a5ab4)
  • package: customize the label in the search component (dc6e427)
  • package: integration of the new german address interface (defe0b0)
  • package: new event emitter onGermanAddressMapped (3ae431f)

2.0.0 (2019-07-23)

Bug Fixes

  • demo: solved rendering issue (6b9582c)
  • demo: updated angular and other deps (ede64ca)
  • demo: updated angular flex layout to v8 (0faf3dc)
  • demo: updated angular to v8 (2a32477)
  • demo: updated angular to v8.1.2 (4fc3521)
  • demo: updated angular, material and other dependencies (df4282b)
  • package: fixed version of the compiler and compiler cli (5ad7ae2)
  • package: updated angular and material to v8 #133 (da2e294)
  • package: updated angular and other deps (88079ea)
  • package: updated rollup (ab9fb55)
  • package: updated the angular dependencies (4b1d51f)
  • package: updated the schematics (b2b441f)

Features

  • project: added a second demo app (3f07d26)

1.6.1 (2019-05-05)

Bug Fixes

  • package: options.push is not a function fixed #104 (2cf8d4f)

1.6.0 (2019-05-04)

Bug Fixes

  • demo: downgraded @angular/platform-browser to v7.2.12 (80f2005)
  • demo: updated angular and other dependencies (02fb365)
  • demo: updated angular and other dependencies (59d34a7)
  • demo-schematics: minor #69 (7a1804a)
  • package: added @angular-devkit/schematics as dev dependency #69 (6ec7bb1)
  • package: minor #69 (dd10b9b)
  • package: prevent invalid value error for the directive as well #100 (8ebe3fb)
  • package: prevent invalid value error when type or country are null #100 (80014cd)
  • package: updated postcss and rollup (eca3761)
  • package: updated rollup to v1 (98125e2)
  • package: updated the schematics #69 (9281882)

Features

  • demo-schematics: added a brand new demo app for angular schematics (5ad3513)

1.5.0 (2019-04-02)

Bug Fixes

  • demo: updated angular cdk and material to 7.3.4 (bf4af44)
  • demo: updated angular to v7.3.1 (15526c1)
  • demo: updated angular, material and other deps (ea16bb7)
  • demo: updated dependencies (4238e7d)
  • demo: updated dependencies, angular to v7.2.0 and material to v7.2.1 (a025c26)
  • demo: updated dependencies, angular to v7.2.0 and material to v7.2.1 (a4378f1)
  • demo: updated reflect metadata (7ef4da6)
  • docs: replaced onAddressSelected with onAutocompleteSelected - typo error #40 (1f88ec6)
  • package: added angular schematics (ab59926)
  • package: downgraded jest (f428a82)
  • package: initialize the autocomplete mechanism only in the browser - SSR (7519b8c)
  • package: updated angular material and other deps (c9feeff)
  • package: updated angular to v7.3.1 (5884951)
  • package: updated angular to v7.3.4 (a5f08ac)
  • package: updated jest (d180485)
  • package: updated postcss to v7.0.13 (4058ad9)

Features

  • demo: updated angular and other dependencies (446bc32)
  • package: added schematics support #69 (7c145d7)
  • package: updated angular and other dependencies (69b6513)

1.4.0 (2018-11-02)

Features

  • package: support of angular v7 (22b1bd5)

1.3.0 (2018-10-03)

Bug Fixes

  • package: fixed the path of node_module in the npm script to transpile agm core via babel (abeb505)
  • package: unexpected token import from agm core module fixed via babel v7.1.0 (5c6a295)
  • package: updated dependencies (8a41a4c)
  • package: updated typescript to v2.9.2 (66d1e24)

Features

  • package: added address validator's form control to 'matGoogleMapsAutocomplete' (859c103)
  • package: simplify the library by adding the matGoogleMapsAutocomplete directive (f2b7b63)

1.2.2 (2018-07-24)

Bug Fixes

  • package: added agm/core module to external modules for rollup (95046fd)

1.2.1 (2018-07-18)

Bug Fixes

  • package: added dual binding for the placeholder and removed html content from inputs (78f88ca)
  • package: solved all lint errors (551743a)

1.2.0 (2018-07-10)

Features

  • package: added the appearance input to style the address mat-form-field #5 (9cf1106)

1.1.0 (2018-06-30)

Features

  • package: added additional input for mat-google-maps-autocomplete` (6f91889)

1.0.0 (2018-06-18)

Bug Fixes

  • package: the assets path (6f0e24c)

Features

  • package: added MatGoogleMapsAutocompleteComponent | mat-google-maps-autocomplete (5584cae)
  • package: added MatGoogleMapsAutocompleteModule (dadcddd)
  • package: added MatValidateAddressDirective | matValidateAddress (60e44cd)