Skip to content

Commit

Permalink
Merge pull request #95 from NerdCats/Issue#87
Browse files Browse the repository at this point in the history
#87 google map api key added on AppSettings
  • Loading branch information
tareq89 authored Jun 29, 2016
2 parents 34d92f9 + b4880ad commit f3c481b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Router, ROUTER_PROVIDERS} from '@angular/router-deprecated';


import { GOOGLE_MAPS_PROVIDERS, provideLazyMapsAPILoaderConfig } from 'angular2-google-maps/core/index';
import { AppSettings } from './shared/app.settings';
import 'rxjs/add/operator/catch';

// INFO: Need to use a proper logging module here
Expand All @@ -19,5 +20,5 @@ bootstrap(AppComponent, [
HTTP_PROVIDERS,
SECURE_HTTP_PROVIDERS,
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig({ apiKey: 'AIzaSyCKMIEYdB0YPJkDr89n0WuaG3qQDjE9ndY' })])
provideLazyMapsAPILoaderConfig({ apiKey: AppSettings.GOOGLE_MAP_API_KEY })])
.catch(err => console.error("Bootstrapping Failed " + err));
5 changes: 5 additions & 0 deletions app/shared/app.settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export class AppSettings {
public static get SHADOWCAT_API_BASE(): string {
return this.SHADOWCAT_BASE + "api/"
}

public static get SHADOWCAT_BASE(): string {
return "http://gofetch.cloudapp.net:1337/"
}

public static get GOOGLE_MAP_API_KEY(): string {
return 'AIzaSyCKMIEYdB0YPJkDr89n0WuaG3qQDjE9ndY';
}
}

0 comments on commit f3c481b

Please sign in to comment.