The JS API allows you to use 2SexyContent data in your JavaScript with minimal plumbing. Here's how it works:
Download the App to experiment with this yourself.
The following examples do the same thing, with 5 different technologies
This is the simplest example, no JS whatsoever. It just serves as a reference.
Just use the following links: demos here, download the app to experiment yourself here.
This is another simple example - still using server-side binding. In this case it uses Razor.
This is a simple FAQ sample using JavaScript to visualize it. So this is a jQuery only example, without any special MVC or data binding frameworks.
This example uses knockoutJS. it's a simple data-binding javascript-library. Not as powerfull as AngularJS, but also a bit simpler. But if you're serious about getting into JS or even SPA (single page application) development, you'll have to go directly to AngularJS.
This example uses AngularJS for the data binding.