Skip to content

Instantly share code, notes, and snippets.

View asadbek064's full-sized avatar
🎯
Focusing

Asad Karimov asadbek064

🎯
Focusing
View GitHub Profile
@asadbek064
asadbek064 / settings.json
Last active October 25, 2023 15:46
vscod settings
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Firefox Dark",
"material-icon-theme.folders.theme": "specific",
"workbench.startupEditor": "newUntitledFile",
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"liveshare.guestApprovalRequired": true,
"zenMode.hideLineNumbers": false,
import { Component } from '@angular/core';
import { FormControl, FormGroup, FormBuilder, FormGroupDirective, NgForm, Validators } from '@angular/forms';
import { AuthService } from './auth.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class AuthService {
constructor(
private http: HttpClient
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const cors = require('cors');
// Allowing Access-Control-Allow-Origin
app.use(cors());
const corsOptions = {
origin: 'http://localhost:4200',
optionsSuccessStatus: 200