Skip to content
/ uko-2.0 Public

my mvvm mini lib , write from study vue source code.

License

Notifications You must be signed in to change notification settings

TopGrd/uko-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uko-2.0

FOSSA Status

数据劫持实现的mvvm

useage

const test = new Uko({
  el: '#app',
  tpl: `<div>
    hello {{name}}
    <input u-model="food" u-click="add('hello')" type="text" />
    {{food}}
    <button u-click="changeName()">change</button>
  </div>`,
  data: {
    name: 'uko',
    food: 'apple'
  },
  methods: {
    add(e) {
      this.food += e
    },
    changeName() {
      this.name = 'uko 2.0'
    }
  }
})

License

FOSSA Status

About

my mvvm mini lib , write from study vue source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published