1.1.0 • Published 5 years ago

nanof v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

ultra minimalist framework

Build Status

usage

import $k from 'nanof'

activate

Activate is a function to bind a js module to a DOM element.

The function takes as a parameter the module / controller name and a js module ( a function ).

The frameworks expects that there is at least an HTML element with the controller attribute set.

The function will receive as parameters a $ function bound to the root element and the root element. If there are multiple elements referring the same controller, the module will be activated once for element.

<div controller="my-cool-app">
  ...
</div>
$k.activate("my-cool-app", function($, element) {
  // ...
});
1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago