Source

presentation-knockoutjs / snippets / Knockout-JSSnippets / ko2-indexjsinit.snippet

Full commit
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Title>ko2-indexjsinit</Title>
      <Author>Steve Michelotti</Author>
      <Description>
      </Description>
      <HelpUrl>
      </HelpUrl>
      <Shortcut>ko2indexjsinit</Shortcut>
    </Header>
    <Snippet>
      <Code Language="jscript"><![CDATA[/// <reference path="knockout-1.3.0beta.debug.js" />
/// <reference path="jquery-ui-1.8.16.js" />
/// <reference path="jquery-1.6.4.js" />
/// <reference path="ajax-util.js" />

$$(function () {
    var data = [
        { Id: 1, Name: "Ball Handling" },
        { Id: 2, Name: "Passing" },
        { Id: 3, Name: "Shooting" },
        { Id: 4, Name: "Rebounding" },
        { Id: 5, Name: "Transition" },
        { Id: 6, Name: "Defense" },
        { Id: 7, Name: "Team Offense" },
        { Id: 8, Name: "Team Defense" }
    ];

    $end$
   
});


]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>