Skip to content

Instantly share code, notes, and snippets.

@ZXS66
ZXS66 / GenerateNewI18NFile.cs
Created July 23, 2022 01:51
update angular xlf file
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
generateNewI18NFile();
return;
}
@ZXS66
ZXS66 / angular-service-base.ts
Created July 23, 2022 01:53
Angular service base class
import { HttpHeaders, HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { take } from 'rxjs/operators';
/** common request options */
const _HTTP_OPTIONS = {
headers: new HttpHeaders({
'Content-Type': 'application/x-www-form-urlencoded'
}),
// withCredentials: true