Skip to content

Commit c9a77af

Browse files
committed
docs(project): updated the readme and others
1 parent 2212e00 commit c9a77af

File tree

8 files changed

+38
-67
lines changed

8 files changed

+38
-67
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,29 @@ everything included in `matGoogleMapsAutocomplete` + the following
367367
src="https://raw.githubusercontent.com/angular-material-extensions/google-maps-autocomplete/HEAD/assets/v3.0.0/search1.png">
368368
</p>
369369

370+
```html
371+
<mat-card>
372+
<mat-card-title>Auto Parse Address</mat-card-title>
373+
<mat-card-content>
374+
<!-- ####### here we go !! ######-->
375+
<mat-search-google-maps-autocomplete appearance="outline"
376+
country="de"
377+
(onGermanAddressMapped)="onGermanAddressMapped($event)">
378+
></mat-search-google-maps-autocomplete>
379+
</mat-card-content>
380+
</mat-card>
381+
```
382+
383+
384+
```typescript
385+
import {Appearance, GermanAddress, Location} from '@angular-material-extensions/google-maps-autocomplete';
386+
387+
onGermanAddressMapped($event;: GermanAddress;) {
388+
console.log('onGermanAddressMapped', $event);
389+
}
390+
```
391+
392+
370393

371394
<a name="documentation"/>
372395

projects/angular-material-extensions/google-maps-autocomplete/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@angular/common": "^8.2.14",
5252
"@angular/core": "^8.2.14",
5353
"@angular/platform-browser": "^8.2.14",
54+
"@angular/flex-layout": "^8.0.0-beta.27",
5455
"@angular/forms": "^8.2.14",
5556
"@angular/cdk": "^8.2.3",
5657
"@angular/material": "^8.2.3",

projects/angular-material-extensions/google-maps-autocomplete/src/lib/component/mat-search-google-maps-autocomplete/mat-search-google-maps-autocomplete.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
2-
import {GermanAddress} from '../../interfaces';
32
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
3+
44
import {parseGermanAddress} from '../../helpers/parser';
5+
import {GermanAddress} from '../../interfaces';
56
import {Appearance} from '../mat-google-maps-autocomplete.component';
67
import {InputAnimations} from '../../animations';
78

projects/angular-material-extensions/google-maps-autocomplete/src/lib/mat-google-maps-autocomplete.module.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
2+
import {CommonModule} from '@angular/common';
13
import {NgModule} from '@angular/core';
4+
import {FlexLayoutModule} from '@angular/flex-layout';
25
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
36
import {MatIconModule, MatInputModule} from '@angular/material';
47
import {MatGoogleMapsAutocompleteDirective} from './directives/mat-google-maps-autocomplete.directive';
58
import {MatValidateAddressDirective} from './directives/address-validator/mat-address-validator.directive';
6-
import {CommonModule} from '@angular/common';
7-
import {MatGoogleMapsAutocompleteComponent, MatSearchGoogleMapsAutocompleteComponent} from './component';
8-
import {FlexLayoutModule} from '@angular/flex-layout';
9-
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
9+
import {MatGoogleMapsAutocompleteComponent} from './component/mat-google-maps-autocomplete.component';
10+
// tslint:disable-next-line:max-line-length
11+
import {MatSearchGoogleMapsAutocompleteComponent} from './component/mat-search-google-maps-autocomplete/mat-search-google-maps-autocomplete.component';
1012

1113

1214
@NgModule({

src/app/app.component.spec.ts

-33
This file was deleted.

src/app/app.module.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {BrowserModule} from '@angular/platform-browser';
2-
import {NgModule} from '@angular/core';
2+
import {CUSTOM_ELEMENTS_SCHEMA, NgModule, NO_ERRORS_SCHEMA} from '@angular/core';
33

44
import {AppComponent} from './app.component';
55
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
@@ -48,6 +48,10 @@ const googleMapsParams = {
4848
MatRadioModule
4949
],
5050
providers: [],
51+
schemas: [
52+
CUSTOM_ELEMENTS_SCHEMA,
53+
NO_ERRORS_SCHEMA
54+
],
5155
bootstrap: [AppComponent]
5256
})
5357
export class AppModule {

src/config/config.component.spec.ts

-27
This file was deleted.

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
"fullTemplateTypeCheck": true,
3232
"strictInjectionParameters": true
3333
}
34-
}
34+
}

0 commit comments

Comments
 (0)