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
#include<cstdio> | |
#include<cstdlib> | |
#include<cmath> | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<cstring> | |
#define nl printf("\n") | |
#define sl strlen | |
#define f0(i,a) for(__typeof(a)i=0;i<a;i++) |
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
#include<cstdio> | |
#include<cstdlib> | |
#include<cmath> | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<cstring> | |
#define LLI long long int | |
#define LL long long | |
#define pf printf |
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
#include<cstdio> | |
#include<sstream> | |
#include<cstdlib> | |
#include<cmath> | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<vector> | |
#include<cstring> | |
using namespace std; |
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
#include<cstdio> | |
#include<sstream> | |
#include<cstdlib> | |
#include<cmath> | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<vector> | |
#include<cstring> | |
#define LLI long long int |
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
#include<cstdio> | |
#include<sstream> | |
#include<cstdlib> | |
#include<cmath> | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<cstring> | |
#define LLI long long int | |
#define LL long long |
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
#include<cstdio> | |
#include<sstream> | |
#include<cstdlib> | |
#include<cmath> | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<vector> | |
#include<cstring> | |
#include<map> |
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
#include<cstdio> | |
#include<sstream> | |
#include<cstdlib> | |
#include<cmath> | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<vector> | |
#include<cstring> | |
#include<map> |
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
<form class="form-group" [formGroup]="formGroup"> | |
<div mat-dialog-content> | |
<!-- Name --> | |
<mat-form-field> | |
<input matInput formControlName="first_name" placeholder="Name…" > | |
<mat-error *ngIf="!formGroup.controls.first_name.invalid"> | |
Filed is required... | |
</mat-error> | |
</mat-form-field> |
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
import {Component, OnInit} from '@angular/core'; | |
import {FormBuilder, FormGroup, Validators} from '@angular/forms'; | |
import {Subject} from 'rxjs'; | |
import {takeUntil} from 'rxjs/operators'; | |
// your extra code if you needed… | |
export class FileUploadComponent implements OnInit, OnDestroy { | |
formGroup: FormGroup; | |
disabled = true; |
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
import {CommonModule} from '@angular/common'; | |
import {NgModule} from '@angular/core'; | |
import {DataService} from '../../shared/services/data.service'; | |
import {FileUploadService} from './services/file-upload.service'; | |
import {FlexModule} from '@angular/flex-layout'; | |
import {RouterModule} from "@angular/router"; | |
import { | |
MatFormFieldModule, MatIconModule, MatInputModule, MatSnackBarModule, |
OlderNewer