View Model System.
npm install alas
在此我們只提供簡易說明,詳細介紹 技術文件 中得知。
#### 為了UI/UX而生
具有諸多的內置方法與事件都是為了優化流程而設計的。
#### 語系與規則的自我管理
以 Container 為主的擴展方式可以將 Model 快速的遷移至各種專案。
#### 為Vue.js進行優化
Alas 可以說是 Vue 開發的經驗總結,雖然該 Library 不需要運行於其中,但完整支援 Vue 雙向綁定模式。
---
``bash`
npm i alas --save
---
`js
import Alas from 'alas'
const alas = new Alas()
alas.addModel('user', {
body: {
name: ['#ms.type | is: string']
}
})
const user = alas.make('*', 'user').$init({
name: 'dave'
})
console.log(user.name) // dave
``
---