Search⌘ K
AI Features

Using a Mixin with Underscore

Explore how to use Underscore's extend method to apply a StorageMixin that enables local storage in Marionette entities. Understand how to configure storage keys matching each entity and leverage Backbone.localStorage for persistent client-side data storage in your Marionette applications.

At this point, we’re able to create a new constructor and have it assigned to the original reference. However, we still haven’t done anything about configuring local storage, which is what we originally set out to do.

Using the extend function

Underscore provides an ...