Skip to content

Instantly share code, notes, and snippets.

@stephenplusplus
stephenplusplus / app.js
Last active December 14, 2015 12:08
DI thing.
// Create a module for the application.
var app = things('taptap');
// A "Service" is a once-instantiated, injectable dependency your app may need.
// "User" is a service that will handle the functionality of logging in and out
// a user. Note that it lists "Store" in the signature of the function. This
// will be caught by "thing.js" and injected into the function when it is
// called.
app.service('User', function(Store) {