0.0.6 • Published 3 years ago

@mini-architecture/mini v0.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

mini

an example of mini-app

example

// index.html
<view>
  <button bindtap="handleClick" class="btn">click me</button>
  <view class="{{cls}}">bind-data: {{hello}}</view>
  <button bindtap="goNext">go next page</button>
</view>

// index.js
Page({
  data: {
    hello: 'hello world',
    cls: 'view',
  },
  handleClick() {
    this.setData({ hello: 'hello again' })
  },
  goNext() {
    ma.navigateTo({
      url: 'pages/demo/index',
      success() {},
    })
  },
})

find more at @mini-architecture/framework