1.2.12 • Published 5 years ago

simpleitjs v1.2.12

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 years ago

1.2.9

5 years ago

1.2.12

5 years ago

1.2.10

5 years ago

1.2.11

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago