This file contains hidden or 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
| { | |
| "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, |
This file contains hidden or 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
| 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 { |
This file contains hidden or 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
| import { Injectable } from '@angular/core'; | |
| import { HttpClient } from '@angular/common/http'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class AuthService { | |
| constructor( | |
| private http: HttpClient |
This file contains hidden or 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
| 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 |