summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/test/test.component.ts
diff options
context:
space:
mode:
authorChuyi Guo <guochuyi@chinamobile.com>2019-08-30 03:03:49 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-30 03:03:49 +0000
commit95db8df651691e3645921cc9a795971beb2e855a (patch)
tree2804a433840464edeed59827b99ba56442c53c9f /usecaseui-portal/src/app/test/test.component.ts
parent0fe93162839f6848710dccfc49667973a3c3763e (diff)
parent0c1e82ccbfa6dcb8ee5d11220a93fefc61465374 (diff)
Merge "feat: change the mock data path config file"
Diffstat (limited to 'usecaseui-portal/src/app/test/test.component.ts')
-rw-r--r--usecaseui-portal/src/app/test/test.component.ts15
1 files changed, 14 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/test/test.component.ts b/usecaseui-portal/src/app/test/test.component.ts
index 30fdedc7..e217919f 100644
--- a/usecaseui-portal/src/app/test/test.component.ts
+++ b/usecaseui-portal/src/app/test/test.component.ts
@@ -15,6 +15,8 @@ export class TestComponent implements OnInit {
ngOnInit() {
this.getMockData();
this.getjsonData();
+ this.getCurrentLanguage();
+ this.createPostData();
}
tableData = []
@@ -25,10 +27,21 @@ export class TestComponent implements OnInit {
})
}
getjsonData() {
- this.TextService.getjsonData().subscribe(res => {
+ this.TextService.getjsonData("xuran").subscribe(res => {
console.log(res, "======json data")
})
}
+ getCurrentLanguage() {
+ this.TextService.getCurrentLanguage(10).subscribe(res => {
+ console.log(res, "======> current language")
+ })
+ }
+ createPostData() {
+ this.TextService.getCreatensData("/upload/name", { user: "xuran" }).subscribe(res => {
+ console.log(res, "======> post data")
+ })
+ }
+
}