Skip to content

Instantly share code, notes, and snippets.

View nntndfrk's full-sized avatar
🦏

Mykhailo Smolinskyi nntndfrk

🦏
  • Self-employed
  • Chernivtsi, Ukraine
  • X @nntndfrk
View GitHub Profile
<style>
.object-fit img {
object-fit: cover;
width: 30%;
height: 100px;
}
@nntndfrk
nntndfrk / http.service.ts
Created November 23, 2017 18:57 — forked from StressoID/http.service.ts
Angular HTTP service
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
@Injectable()
export class HttpService {
private host = 'http://59f4a79d4e78aa00120ef45c.mockapi.io';
constructor(private http: HttpClient) { }