diff --git a/matsen-tool/src/app/app.component.html b/matsen-tool/src/app/app.component.html
index 6446dd2..cd5ac6f 100644
--- a/matsen-tool/src/app/app.component.html
+++ b/matsen-tool/src/app/app.component.html
@@ -1,11 +1,11 @@
-
-
-
-
+
diff --git a/matsen-tool/src/app/app.component.ts b/matsen-tool/src/app/app.component.ts
index 268e10d..8258cf0 100644
--- a/matsen-tool/src/app/app.component.ts
+++ b/matsen-tool/src/app/app.component.ts
@@ -1,14 +1,31 @@
-import { Component } from '@angular/core';
-// import { PostService } from './core/api/v1';
+import {Component, OnInit} from '@angular/core';
+import {ApiPostsGetCollection200Response, PostJsonld, PostService} from "./core/api/v1";
+import {Observable, Subscription} from "rxjs";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
})
-export class AppComponent {
- title = 'matsen-tool';
- // posts$ = this.postService.postsGetCollection();
+export class AppComponent implements OnInit{
+ title = 'matsen-tool';
+ protected postSub: Subscription;
+ protected posts: Array;
+
+ constructor(private postService: PostService) {
+ this.postSub = new Subscription();
+ this.posts = [];
+ }
+
+ ngOnInit(): void {
+ this.postSub = this.postService.postsGetCollection().subscribe(
+ data => {
+
+ this.posts = data.hydramember;
+ console.log(data);
+ }
+ );
+
+ }
- // constructor(private postService: PostService) {}
}
diff --git a/matsen-tool/src/environment.ts b/matsen-tool/src/environment.ts
index 4acd54b..16446e8 100644
--- a/matsen-tool/src/environment.ts
+++ b/matsen-tool/src/environment.ts
@@ -1,4 +1,5 @@
export const environment = {
production: false,
- basePath: 'https://matsen-tool-be.ddev.site:8443',
+ // basePath: 'https://matsen-tool-be.ddev.site:8443',
+ basePath: 'https://127.0.0.1:49858',
};