Class: Wraith.Bootloader

Defined in: src/bootloader.coffee

Overview

The bootloader object. This should be instantiated after all JS is loaded on the page. It will search the DOM for elements with the data-controller attribute and try to load their respective controller from the global namespace. It is acceptable to use dot notation to do so, e.g. App.Controller

Examples:

bootloader = new Wraith.Bootloader

Instance Method Summary

Constructor Details

- (void) constructor()

Constructor

Instance Method Details

- (void) loadController(id, $item)

Loads a given controller by id and HTML element

Parameters:

  • id (String) The controllers id
  • $item (Object) The HTML element to bind to