GDB AMD and RequireJS Support Example

Ms. Trunchbull
Edit the text above!

Model Data Structure

(Note: Because model updates are in realtime and the syntax highlighter is processor intensive, rapid input may slow this example. This behavior is not present in the production use of the plugin)

HTML

JavaScript

require.config({
    baseUrl: './',
    paths: {
        jquery: "http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min",
        gdb: "../jquery.gdb.min"
    }
});

require(['jquery','gdb'], function( $, GDB ) {
$(function(){
    var model={name: "Ms. Trunchbull"};
    GDB({teacher: model}
});