This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<string> Post<T>(string path, T data) | |
{ | |
using (var client = new HttpClient()) | |
{ | |
client.Timeout = new TimeSpan(0, 0, 5); | |
client.DefaultRequestHeaders.Accept.Clear(); | |
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); | |
var json = JsonConvert.SerializeObject(data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li *ngFor="let customer of customersList">{{customer.name}}</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt update | |
RUN apt install -y apache2 | |
COPY dist /var/www/html | |
CMD /usr/sbin/apache2ctl -D FOREGROUND | |
EXPOSE 80 |
NewerOlder