Skip to content

dcalsky/railgun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Railgun

A simple MVVM framework.

Usage

new Railgun({
  element: '#app',
  data: {
  	bar: 'hello world',
  	bar1: 'railgun'
  },
  methods: {
    foo: function () {
      this.bar = 'HELLO WORLD'
      this.foo1()
    },
    foo1: function () {
      alert('hello')
    }
  }
})
<div id="app">
	<input type="text" n-model="bar" />
	<p>{{bar1}}: {{bar}}</p>
	<button n-on:click="foo">Click me</button>
</div>
<script src="railgun.js"></script>

About

Simple MVVM framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published