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

2015. 9. 21. 14:15Front/AngularJS

반응형

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}}"


  - 끝 -

반응형

'Front > AngularJS' 카테고리의 다른 글

angular.isUndefined 사용하기~  (0) 2015.09.23
learn angularJS  (0) 2014.11.06
angular, bower, karma, grunt, yo?  (0) 2014.10.15