을 위해 404를 반환 :ASP.NET 코어는 지금은 <code>Controller</code> 아래와 같이 있고, 내가 <code>Angular 2+</code>로 <code>ASP.NET Core</code>을 사용하고 각도 요청
export class AppComponent implements OnInit {
constructor(private _httpService: Http) { }
apiValues: string[] = [];
ngOnInit() {
this._httpService.get('api/values/get').subscribe(values => {
this.apiValues = values.json() as string[];
});
}
}
나는 404 (bad Request)
프로젝트를 얻는다.
어떻게 해결할 수 있습니까?
을 모두 각도 및 .NET의 핵심이 같은 프로젝트에있는 경우, 다만'/ API/값/get' 같은 경로를 조정하고 그것을 작동합니다. 그렇지 않으면 우리에게 어떻게 각도를 설정하고 있는지 보여주지 않으면 .net core 면도기보기 –