Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 96c368a

Browse files
Merge pull request #7 from MikaKoskiola/master
readme improvements thanks, dude :+1:
2 parents 1924da7 + d7276ff commit 96c368a

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,23 @@ Or use the files from ionic market:
1313

1414
It is a clean project without external dependencies!
1515

16-
After that!!!:
16+
## Configuring the project
1717

18-
- go in www folder then app and directives
19-
- there open the googleMaps.js and change the Google Maps apiKey with yours
18+
1. go to the \www\app\controllers\ folder and open up the results.js with your favorite editor
19+
2. Edit the following line to include your Google API key:
2020

21-
Finding something in the democontent:
21+
```javascript
22+
$scope.apiKey = 'YOUR_API_KEY_HERE';
23+
```
24+
25+
## Trying out the app
26+
27+
1. Issue ionic serve in your shell to try out the app in your regular local browser
28+
2. Issue ionic run android / ios in your shell to try out the app in a real device
29+
30+
## Example data
31+
32+
Finding something in the demo content:
2233
Type in 'Berlin', 'Ber', 'Sports' or 'Düsseldorf'
2334

2435
## Content

www/app/controllers/results.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ define([
1414
'eventService',
1515
function ($scope, $stateParams, $state, $timeout, $ionicHistory, eventService) {
1616
var first = true;
17+
$scope.apiKey = 'YOUR_API_KEY_HERE';
1718
$scope.limit = 10;
1819
$scope.show = {
1920
list: true

www/app/templates/results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<button class="button button-clear icon" ng-disabled="loading" ng-class="{'ion-earth': show.list, 'ion-ios-list': !show.list}" ng-click="show.list = !show.list">
55
</button>
66
</ion-nav-buttons>
7-
<div id="map" data-tap-disabled="true" google-map style="height:100%; width: 100%;" api-key="AIzaSyB16sGmIekuGIvYOfNoW9T44377IU2d2Es" events="events"></div>
7+
<div id="map" data-tap-disabled="true" google-map style="height:100%; width: 100%;" api-key="{{apiKey}}" events="events"></div>
88
<ion-content ng-show="show.list" class="background-stable">
99
<ion-refresher on-refresh="reload()">
1010
</ion-refresher>

0 commit comments

Comments
 (0)