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 { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { | |
MatButtonModule, MatCardModule, MatDialogModule, MatInputModule, MatTableModule, MatProgressBarModule, | |
MatToolbarModule, MatMenuModule, MatIconModule, MatProgressSpinnerModule, MatFormFieldModule, MatGridListModule | |
} from '@angular/material'; | |
@NgModule({ | |
imports: [ | |
CommonModule, |
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 { HttpHeaders, HttpClient } from '@angular/common/http'; | |
var reqHeader = new HttpHeaders({ 'Content-Type': 'application/json' }); | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class MainService { | |
//Add your API path here. |
OlderNewer