jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

Provide a use-case harness with jsFiddle for some trivial online service

Open PeterAronZentai opened this issue 12 years ago • 1 comments

We have a first version targetting Northwind online service from Microsoft.

check out: http://jsfiddle.net/JayData/mc3x4/

PeterAronZentai avatar Jun 07 '12 16:06 PeterAronZentai

Here's another one using Angular and Netflix OData: http://jsfiddle.net/RainerAtSpirit/YuQH2/.

Note: You've to use Firefox/Chrome to test as IE doesn't like the fiddle setup.

Question: This version is modeled after your Knockout Examples. There's only one controller defined at the moment, but the genre values are not populated on first time load.

function GenreCtrl($scope) {
       $scope.genres = [
           {Name : 'One TEST item to start with'}
       ];
       Netflix.context.Genres.toArray($scope.genres);
   }

I've added a button with an undefined ng-click function and as soon as you hit that the <li ng-repeat ... elements will be populated correctly. Not quite sure why that is, I've to admit.

The desired behavior would be that the list is updated whenever the answer returns from netflix. Like in the knockout example there's probably some integration code required to make that happen, but that beyond my pay grade ;-).

RainerAtSpirit avatar Jun 08 '12 14:06 RainerAtSpirit