forgot about the tags, local service urls

This commit is contained in:
Evert Prants 2020-11-08 18:32:29 +02:00
parent f977ffd65d
commit 3c221dc99b
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
4 changed files with 15 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import { Observable } from 'rxjs';
providedIn: 'root',
})
export class ArticleService {
private articleUrl = 'http://midaiganes.irw.ee/api/list/dad2ec5d';
private articleUrl = 'https://proovitoo.lunasqu.ee/article.json';
constructor(private http: HttpClient) { }

View File

@ -6,3 +6,8 @@
</div>
</ng-container>
<div class="content-wrapper" [innerHTML]="article.body"></div>
<div class="tags">
<ul>
<li *ngFor="let tag of article.tags">{{ tag }}</li>
</ul>
</div>

View File

@ -14,3 +14,11 @@
left: 0
width: 100%
height: 100%
.tags li
display: inline-block
padding: 5px 10px
color: #fff
background: #ff57a2
border-radius: 99px
margin-right: 10px

View File

@ -8,7 +8,7 @@ import { Observable } from 'rxjs';
providedIn: 'root',
})
export class ListService {
private listUrl = 'http://midaiganes.irw.ee/api/list?limit=100';
private listUrl = 'https://proovitoo.lunasqu.ee/list.json';
constructor(private http: HttpClient) { }