Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

kajyr/nanof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) {
  // ...
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published