Skip to content

Commit 327bda4

Browse files
authored
Updated readme
1 parent d21644f commit 327bda4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,22 @@ exports.onCameraChanged = onCameraChanged;
124124
## Angular
125125

126126
```
127+
// /app/map-example.component.ts
128+
127129
import {Component, ElementRef, ViewChild} from '@angular/core';
128130
import {registerElement} from "nativescript-angular/element-registry";
129131
130132
registerElement("MapView", () => require("nativescript-google-maps-sdk").MapView);
131133
132134
@Component({
133-
selector: 'google-maps-example',
135+
selector: 'map-example-component',
134136
template: `
135137
<GridLayout>
136138
<MapView (mapReady)="onMapReady($event)"></MapView>
137139
</GridLayout>
138140
`
139141
})
140-
export class GoogleMapsExample {
142+
export class MapExampleComponent {
141143
142144
@ViewChild("MapView") mapView: ElementRef;
143145

0 commit comments

Comments
 (0)