April 2018
Intermediate to advanced
390 pages
8h 46m
English
Your fake backend simply returns any file in the current MockRest folder. As you get more sample responses from the backend developer, you can copy them into this folder to provide additional backend endpoints.
Let's take a look at quote.ts, because it's the main place where the Http request is made. First, you need to import Injectable and Http, which you can do as follows:
import {Injectable} from '@angular/core'; ...