DEV Community

Discussion on: Build an Angular 8 App with REST API and ASP.NET Core 2.2 - part 2

 
ashiarush profile image
ashiarush

Yes it worked but I think its not the good way to give full path.

Is there anyother way to give just the relative path.

Thanks in advance.

Thread Thread
 
jonbrownnhti profile image
JonBrownNHTI

I agree. This was just a quick fix so you could test. Where is your ClientApp folder?

var path = Path.Combine(Directory.GetCurrentDirectory(), "ClientApp");

spa.Options.SourcePath = path;