Skip to content
Minimalistic Javascript MVC library
JavaScript Other
Find file
Latest commit d5f1a3e @teabow Update README.md
Failed to load latest commit information.
sample-browserify-react
sample
src
.gitignore
LICENCE
README.md
bower.json
package.json Fix template data issue on view init

README.md

Aero.js (v1.2.5)

aero.js

Minimalistic Javascript MVC library - Especially designed for mobile apps

You can use it with integrated template mechanism or with a third party UI library like React

To install Aero.js :

  • bower install aero.js
  • npm install aero.js (commonJS module to use with browserify)

To see how it works just run the samples. You can find documentation here.
To add some cool data-binding check this repository : aero.js-observe-extension.

API

View

    /**
     * Renders an object into the specified selector
     * @param containerSelector the container selector
     * @param templateUrl the template url used to generate display
     * @param data the data object to display
     */
    render: function (containerSelector, templateUrl, data)

    /**
     * Renders an array into the specified selector
     * @param containerSelector the container selector
     * @param templateUrl the template url used to generate display
     * @param dataArray the data array to display
     * @param @nullable iterator the iterator used to modify array element before injection
     */
    renderArray: function (containerSelector, templateUrl, dataArray, iterator)

    /**
     * Finds element in view container scope
     * @param selector the element selector
     * @returns {*} the jquery object
     */
    findElement: function (selector)

    /**
     * Binds an event to the view
     * @param key the key representing the event name and selector, e.g 'click button#btnSave'
     * @param handler the event handler function to implement
     */
    addEvent: function (key, handler)

    /**
     * Unbinds an event from the view
     * @param key the key representing the event name and selector
     */
    removeEvent: function (key)

    /**
     * Adds a touch event to the view
     * @param selector the node selector
     * @param handler the event handler function to implement
     */
    addTouchEvent: function (selector, handler)
Something went wrong with that request. Please try again.