changeset 70:d4ebafe32c23

Inject a URI to a remote library repo in the app bootstrapping.
author Lucas Thompson <dev@lucas.im>
date Wed, 18 Jan 2017 10:13:24 +0000
parents eb7e2627c111
children 0980eb001bde
files src/app/app.module.ts
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/app/app.module.ts	Wed Jan 18 10:12:20 2017 +0000
+++ b/src/app/app.module.ts	Wed Jan 18 10:13:24 2017 +0000
@@ -1,5 +1,5 @@
 import { BrowserModule } from '@angular/platform-browser';
-import { NgModule } from '@angular/core';
+import {NgModule} from '@angular/core';
 import { FormsModule } from '@angular/forms';
 import { HttpModule } from '@angular/http';
 
@@ -37,7 +37,8 @@
     {provide: HTMLAudioElement, useValue: new Audio()}, // TODO use something more generic than HTMLAudioElement
     {provide: 'AudioContext', useValue: createAudioContext()}, // use a string token, Safari doesn't seem to like AudioContext
     AudioPlayerService,
-    FeatureExtractionService
+    FeatureExtractionService,
+    {provide: 'PiperRepoUri', useValue: 'http://localhost:8080'}
   ],
   bootstrap: [AppComponent]
 })