1.2.12 • Published 4 years ago

simpleitjs v1.2.12

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

simpleitjs

Simple light frontend framework, inspired from AngularJS

Usage:

npm install simpleitjs --save
const SimpleJS = require('simpleitjs');

Register new module

class HomePage extends SimpleJS.ModuleScope {
    static invoke(model, Ajax, Router) {
        model.title = 'Hello world!! :)';
        return model;
    }
}
new SimpleJS.Module('HomePage', 'Ajax', 'Router', HomePage);

Or classic vanilla js way

var HomePage = function HomePage() {};
HomePage.invoke = function(model, Ajax, Router) {
    model.title = 'Hello world!! :)';
    return model;
};
new SimpleJS.Module('HomePage', 'Ajax', 'Router', HomePage);

Use registered module

console.log(SimpleJS.get('HomePage').title);
// Hello world!! :)

Features:

  • Works with both browser based frontend setup or npm setup
  • Easy modularity
  • Dependency injection
  • Supports interdependency injection
  • Comes with Router, Ajax etc out of the box modules.
1.2.8

4 years ago

1.2.9

4 years ago

1.2.12

4 years ago

1.2.10

4 years ago

1.2.11

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago