I'm using http request to load a json file, but I'm not actually sure where the config file needs to live.
this.http.get('env.json')
.map(res => res.json()).catch((error: any, caught: Observable<any>) => {
console.log('no');
return Observable.throw(error.json().error || 'Server error');
}).subscribe(() => {
console.log('yes');
});
After running ng serve, there is no dist folder. I don't think I see a directory where items will get copied from into a dist folder.
So where do I put files that my application needs to load with Http?