@ngdoc overview @name Cookbook: Resources - Buzz @description External resources are URLs that provide JSON data, which are then rendered with the help of templates. Angular has a resource factory that can be used to give names to the URLs and then attach behavior to them. For example you can use the {@link http://code.google.com/apis/buzz/v1/getting_started.html#background-operations| Google Buzz API} to retrieve Buzz activity and comments.

{{item.actor.name}} Expand replies: {{item.links.replies[0].count}}

{{item.object.content | html}}
{{reply.actor.name}}: {{reply.content | html}}
xit('fetch buzz and expand', function() { element(':button:contains(fetch)').click(); expect(repeater('div.buzz').count()).toBeGreaterThan(0); element('.buzz a:contains(Expand replies):first').click(); expect(repeater('div.reply').count()).toBeGreaterThan(0); });