javascript - Posting an image from Behance Api with AngularJS -
i'm getting frustrated , know must simple mistake i'm making. so, i'm trying images account on behance , display them on own site. i'm using angularjs. following code i'm able response:
'use strict'; angular.module('angularapp') .controller('behancectrl', function ($scope, $resource) { $scope.behance = $resource('http://www.behance.net/v2/users/zachjanice/projects?client_id=xxxxxxxxxx', { q:'', callback: 'json_callback'}, {get:{method:'jsonp'}} ); $scope.behanceresult = $scope.behance.get(); }); in chrome developer tools shows i'm getting response.
angular.callbacks._0({"projects":[{"id":123456, etc. etc.}] }) my html file showing:
<section ng-controller="behancectrl"> <div class="container"> <div class="row"> <ul> <li ng-repeat="behance in behanceresult.results"> <img ng-src="{{projects.covers}}"> <h1>{{projects.id.name}}</h1> </li> </ul> </div> </div> </section> what leaving out? , how can display images , headings images.
any appreciated.
<section ng-controller="behancectrl"> <div class="container"> <div class="row"> <ul> <li ng-repeat="behance in behanceresult.results"> <img ng-src="{{behance.projects.covers}}"> <h1>{{behance.projects.id.name}}</h1> </li> </ul> </div> </div>
Comments
Post a Comment