Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…-library into develop
  • Loading branch information
garygrossgarten committed Aug 25, 2018
2 parents 45d9a6d + e392a44 commit c36c217
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"gh-pages": "ng build --base-href 'https://fivethree-team.github.io/fivethree/' && npx ngh --dir=www --dry-run"
"gh-pages": "ng build --base-href 'https://fivethree-team.github.io/fivethree/' && npx ngh --dir=www"
},
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/map-web-native/map-web-native.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</ion-header>

<ion-content>
<fiv-google-maps apiKey="YOUR_API_KEY" [isCordova]="isCordova"></fiv-google-maps>
<fiv-google-maps [apiKey]="apiKey" [isCordova]="isCordova"></fiv-google-maps>
</ion-content>
2 changes: 2 additions & 0 deletions src/app/map-web-native/map-web-native.page.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Platform } from '@ionic/angular';
import { Component, OnInit } from '@angular/core';
import { environment } from '@environments/environment';

@Component({
selector: 'app-map-web-native',
Expand All @@ -8,6 +9,7 @@ import { Component, OnInit } from '@angular/core';
})
export class MapWebNativePage implements OnInit {

apiKey = environment.mapApiKey
isCordova: boolean;

constructor(private platform: Platform) { }
Expand Down
2 changes: 1 addition & 1 deletion src/app/map/map.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</ion-header>

<ion-content>
<fiv-google-map-web apiKey="YOUR_API_KEY"></fiv-google-map-web>
<fiv-google-map-web [apiKey]="apiKey"></fiv-google-map-web>
</ion-content>
3 changes: 3 additions & 0 deletions src/app/map/map.page.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { environment } from '@environments/environment';

@Component({
selector: 'app-map',
Expand All @@ -7,6 +8,8 @@ import { Component, OnInit } from '@angular/core';
})
export class MapPage implements OnInit {

apiKey = environment.mapApiKey;

constructor() { }

ngOnInit() {
Expand Down
3 changes: 2 additions & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const environment = {
production: true
production: true,
mapApiKey: 'YOUR_API_KEY'
};
3 changes: 2 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
export const environment = {
production: false
production: false,
mapApiKey: 'YOUR_API_KEY'
};

/*
Expand Down
17 changes: 9 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
"dom"
],
"paths": {
"ionic-material-loading": [
"dist/ionic-material-loading"
"@environments/*": ["src/environments/*"],
"loading": [
"dist/loading"
],
"ionic-material-loading/*": [
"dist/ionic-material-loading/*"
"loading/*": [
"dist/loading/*"
],
"ionic-material-dialog": [
"dist/ionic-material-dialog"
"dialog": [
"dist/dialog"
],
"ionic-material-dialog/*": [
"dist/ionic-material-dialog/*"
"dialog/*": [
"dist/dialog/*"
],
"google-maps": [
"dist/google-maps"
Expand Down

0 comments on commit c36c217

Please sign in to comment.