404 error on ng-repeat="image in page.gallery.images"

359 views
Skip to first unread message

Jakub Celewicz

unread,
Jun 21, 2013, 2:44:47 PM6/21/13
to ang...@googlegroups.com
Hi

I am stuck i get this strange error after i used ng-repeat="image in page.gallery.images"
when i remove ng-repeat from template error is gone to

Can someone help me ?

Error Code

  1. GET http://localhost/~jakubcelewicz/angular/app/%7B%7Bimage%7D%7D 404 (Not Found) jquery.min.js:5
    1. (anonymous function)jquery.min.js:5
    2. x.extend.accessjquery.min.js:4
    3. x.fn.extend.htmljquery.min.js:5
    4. e.$broadcastangular.min.js:90
    5. (anonymous function)angular.min.js:82
    6. (anonymous function)angular.min.js:78
    7. t.onreadystatechange

      Template Code

      <p>{{page.gallery.images}}</p>
      </div> 
      <div class="content" >
           <div class="box" ng-repeat="image in page.gallery.images">
                     <a href="#/home"><img src="{{image}}"> </a>
           </div>
      </div>

      Data is coming from json file :
      As follow

      { "description": "MOTOROLA ATRIXxx 4G gives you dual-core docs, or access multimedia on a large screen almost anywhere.", "name": "MOTOROLA ATRIX\u2122 4G", "gallery": { "images": [ "assets/img/folio/1.jpg", "assets/img/folio/2.jpg", "assets/img/folio/3.jpg", "assets/img/folio/4.jpg", "assets/img/folio/5.jpg", "assets/img/folio/6.jpg" ], "title": "this is gallery title" } }

Pawel Kozlowski

unread,
Jun 21, 2013, 2:45:58 PM6/21/13
to ang...@googlegroups.com
Hi!

Have a look at http://docs.angularjs.org/api/ng.directive:ngSrc

Cheers,
Pawel
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+u...@googlegroups.com.
> To post to this group, send email to ang...@googlegroups.com.
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
AngularJS book:
http://www.packtpub.com/angularjs-web-application-development/book
Looking for bootstrap-based widget library for AngularJS?
http://angular-ui.github.com/bootstrap/
Reply all
Reply to author
Forward
0 new messages