In this whirlwind tutorial, we’ll build a blog with batman.js and Firebase.
Client-Side Image Preview with Batman.js
Implementing image preview is breeze thanks to batman.js observers and JavaScript APIs.
Has Many Through in Batman.js
Batman.js doesn’t support hasManyThrough
out of the box, but it can be implemented fairly easily with Set::mappedTo
.
Jasmine-Friendly Batman.js Accessor Stubs
Batman.Object
accessors are the bread and butter of batman.js. Stubbing them can make testing much easier.
Integrate Batman.js and Leaflet with a Custom View
batman.js views are one of the best ways to integrate other JS libraries with batman.js data structures like Batman.Object
and Batman.Set
. For example, you can use a custom view to display Batman.Model
s with leaflet.js
Getting to Know Batman.Set
Batman.Set
is the array-like enumerable of batman.js. It offers observable properties (which are automatically tracked by @accessor
) and useful change events.
Sending JSON Instead of Form Data with Batman.RestStorage
By default, Batman.Request
sends data as HTTP form data. However, you can override this with Batman.RestStorage
.
Batman.js Controller Testing with Jasmine
Automatic Source Tracking in Batman.js
In batman.js, properties automatically track their sources. This is done by tracking all calls to get
when an accessor function is executed.
Introducing the Batman.js MVC Cookbook
The “Batman.js MVC Cookbook” is a collection of annotated code snippets for getting things done with batman.js.