Frameworks208k+ stars

Vue.js

The Progressive JavaScript Framework

Commit Details

Message
"init"
Author
Evan You
Date
2013-07-29
Hash
83fac01746cd7ed6a9578c45c1d62011c93b9a3a

Fun Fact

Vue was originally called Seed. Evan You created it after working at Google, wanting something lighter than Angular.

</>First Code

JavaScript
var defined = require('../utils').defined,
    Emitter = require('../emitter'),
    Binding = require('../binding')

function Seed (el, data, options) {
    
    if (typeof el === 'string') el = document.querySelector(el)
    this.el = el
    this.scope = {}
    this._bindings = {}

    // process options
    options = options || {}
    this.eachBlock = options.eachBlock
    
    // copy data to scope
    for (var key in data) {
        this.scope[key] = data[key]
    }
}