diff --git a/src/app/data-provider.service.ts b/src/app/data-provider.service.ts index 0adabe6..ee4ac99 100644 --- a/src/app/data-provider.service.ts +++ b/src/app/data-provider.service.ts @@ -17,7 +17,7 @@ export class DataProviderService { // allData(){ // return this.http.get('https://bc50-104-199-132-26.ngrok.io/alldata'); // } - public url = 'http://4255-34-91-36-11.ngrok.io/' + public url = 'http://66c9-35-230-85-94.ngrok.io' insert(dbname: String,colname: String,web: String,cat: String){ return this.http.get(this.url+"/insert?dbname="+dbname+"&collectionname="+colname+"&web="+web+"&cat="+cat); //return this.http.get(this.url+"/insert?dbname=data&collectionname=testdata&web=com.burbn.instagram&cat=test"); diff --git a/src/app/tab1/tab1.page.html b/src/app/tab1/tab1.page.html index dbd7812..4dd8b9b 100644 --- a/src/app/tab1/tab1.page.html +++ b/src/app/tab1/tab1.page.html @@ -9,14 +9,12 @@ - {{item.time}} + {{item.time}} - + -
-

   {{item.web}}

-
+

  {{item.web}}

diff --git a/src/app/tab2/tab2.page.ts b/src/app/tab2/tab2.page.ts index 4534c52..82ff8c6 100644 --- a/src/app/tab2/tab2.page.ts +++ b/src/app/tab2/tab2.page.ts @@ -18,7 +18,8 @@ export class Tab2Page implements OnInit { } submit() { var dbname = "data" - var colname = "testdata" + //var colname = "testdata" + var colname = "data2" this.data$=this.tempProvider.insert(dbname,colname,this.web,this.category) }