Skip to content

Commit d356d25

Browse files
committed
fix(demo): removed the old demo app
1 parent 3ae431f commit d356d25

File tree

186 files changed

+112
-34736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+112
-34736
lines changed

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ npm install --save @angular-material-extensions/google-maps-autocomplete
9999
### Requirements (peer dependencies):
100100

101101
for the ui input component, please consider to install the following packages
102-
- [angular animations v7.x](https://www.npmjs.com/package/@angular/animations)
103-
- [angular forms v7.x](https://www.npmjs.com/package/@angular/forms)
104-
105-
if your are not using the directive but the `mat-google-maps-autocomplete` component
106-
- [angular material v7.x](https://www.npmjs.com/package/@angular/material)
107-
- [angular cdk v7.x](https://www.npmjs.com/package/@angular/cdk)
102+
- [angular animations v8.x](https://www.npmjs.com/package/@angular/animations)
103+
- [angular forms v8.x](https://www.npmjs.com/package/@angular/forms)
104+
- [angular material v8.x](https://www.npmjs.com/package/@angular/material)
105+
- [angular cdk v8.x](https://www.npmjs.com/package/@angular/cdk)
108106

109107
```bash
110108
npm i @angular/cdk @angular/material @angular/animations @angular/forms
@@ -121,8 +119,8 @@ npm i @angular/cdk @angular/material @angular/animations @angular/forms
121119
>**Note**:If you are using `SystemJS`, you should adjust your configuration to point to the UMD bundle.
122120
In your systemjs config file, `map` needs to tell the System loader where to look for `@angular-material-extensions/google-maps-autocomplete`:
123121
```js
124-
map: {
125-
'@angular-material-extensions/google-maps-autocomplete': 'node_modules/@angular-material-extensions/google-maps-autocomplete/bundles/google-maps-autocomplete.umd.js',
122+
{
123+
'@angular-material-extensions/google-maps-autocomplete';: 'node_modules/@angular-material-extensions/google-maps-autocomplete/bundles/google-maps-autocomplete.umd.js',
126124
}
127125
```
128126
---
@@ -140,6 +138,7 @@ import { MatGoogleMapsAutocompleteModule } from '@angular-material-extensions/go
140138
@NgModule({
141139
declarations: [AppComponent, ...],
142140
imports: [
141+
// important !!!
143142
AgmCoreModule.forRoot({
144143
apiKey: 'YOUR_KEY',
145144
libraries: ['places']
@@ -224,7 +223,8 @@ combine the result of the `mat-google-maps-autocomplete` with a google map insta
224223
[ngStyle.xs]="{'min-width.%': 100}"
225224
[ngStyle.sm]="{'width.%': 70}">
226225
<mat-google-maps-autocomplete (onAutocompleteSelected)="onAutocompleteSelected($event)"
227-
(onLocationSelected)="onLocationSelected($event)">
226+
(onLocationSelected)="onLocationSelected($event)"
227+
(onGermanAddressMapped)="onGermanAddressMapped($event)">
228228
</mat-google-maps-autocomplete>
229229
</div>
230230

@@ -237,7 +237,7 @@ in your component, the code will be similar to -->
237237
```typescript
238238
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
239239
import {Title} from '@angular/platform-browser';
240-
import {Location, Appearance} from '@angular-material-extensions/google-maps-autocomplete';
240+
import {Location, Appearance, GermanAddress} from '@angular-material-extensions/google-maps-autocomplete';
241241
import {} from '@types/googlemaps';
242242
import PlaceResult = google.maps.places.PlaceResult;
243243

@@ -288,6 +288,11 @@ export class HomeComponent implements OnInit {
288288
this.latitude = location.latitude;
289289
this.longitude = location.longitude;
290290
}
291+
292+
onGermanAddressMapped($event: GermanAddress) {
293+
console.log('onGermanAddressMapped', $event);
294+
}
295+
291296
}
292297

293298
```
@@ -309,6 +314,7 @@ export class HomeComponent implements OnInit {
309314
| onChange | Output() | PlaceResult | string | null | - | event when the input form value changed
310315
| onAutocompleteSelected | Output() | PlaceResult | - | the event will be fired when a place has been selected via the google maps autocomplete component
311316
| onLocationSelected | Output() | Location | - | the event will be fired when a place has been selected via the google maps autocomplete component |
317+
| onLocationSelected | Output() | GermanAddress | - | the event will be fired when a place has been selected and mapped to the german address interface |
312318

313319
#### Supported Types
314320

demo/.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

demo/.gitignore

Lines changed: 0 additions & 39 deletions
This file was deleted.

demo/README.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

demo/angular.json

Lines changed: 0 additions & 157 deletions
This file was deleted.

demo/e2e/protractor.conf.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

demo/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

demo/e2e/src/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

demo/e2e/tsconfig.e2e.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)