initial commit
This commit is contained in:
parent
4f4a2fd29b
commit
fcb5e4b8fd
0
src/app/login/login.component.css
Normal file
0
src/app/login/login.component.css
Normal file
4
src/app/login/login.component.html
Normal file
4
src/app/login/login.component.html
Normal 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>
|
16
src/app/login/login.component.ts
Normal file
16
src/app/login/login.component.ts
Normal 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 = "";
|
||||||
|
|
||||||
|
}
|
18
src/app/services/author.service.ts
Normal file
18
src/app/services/author.service.ts
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
9
src/app/services/post.service.ts
Normal file
9
src/app/services/post.service.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class PostService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user