Skip to content

Commit

Permalink
#87 google map api key added on AppSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq89 committed Jun 27, 2016
1 parent 34d92f9 commit b4880ad
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 b4880ad

Please sign in to comment.