Front/AngularJS

Failed to load resource: the server responded with a status of 404 (Not Found)

태하팍 2015. 9. 21. 14:15
반응형

angularJS를 사용하는데.. img를 가져오는데 resource에서 상대경로로 이상한 resource를 가져오는것이 아닌가? -_-;;

그래서 오류가..<img src="{{item.imageUrl}}"~~블라블라~~ 

item.imageUrl 부분에서 났다.


<<오류 내용>>

Failed to load resource: the server responded with a status of 404 (Not Found)


Resource쪽 확인 - 이상한 값이 들어가 있다..why? ㅠㅠ 




원인은 바로.. img src부분에서  agularJS의 {{item.imgeUrl}}이 src에서 오동작을 하는것 같다.

ng-src로 바꿔주는 깔끔하게 잘돌아간다!!

https://docs.angularjs.org/api/ng/directive/ngSrc


<img ng-src="{{item.imageUrl}}"


  - 끝 -

반응형