initial commit

This commit is contained in:
guams 2024-12-10 20:16:24 +01:00
parent 4f4a2fd29b
commit fcb5e4b8fd
5 changed files with 47 additions and 0 deletions

View File

View File

@ -0,0 +1,4 @@
<p-floatlabel variant="on">
<input pInputText id="on_label" [(ngModel)]="name" autocomplete="off" />
<label for="on_label">On Label</label>
</p-floatlabel>

View File

@ -0,0 +1,16 @@
import { Component } from '@angular/core';
import {FormsModule} from '@angular/forms';
@Component({
selector: 'app-login',
standalone: true,
imports: [
FormsModule
],
templateUrl: './login.component.html',
styleUrl: './login.component.css'
})
export class LoginComponent {
name: string = "";
}

View File

@ -0,0 +1,18 @@
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs';
import {Author} from '../model/author';
@Injectable({
providedIn: 'root'
})
export class AuthorService {
constructor(private httpClient: HttpClient) {
}
list(): Observable<Author[]> {
return this.httpClient.get<Author[]>("http://localhost:8080/api/authors");
}
}

View File

@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class PostService {
constructor() { }
}