made with esnextbin
Created
February 5, 2016 17:55
-
-
Save infomiho/0d4fa354b0ff0de7c8d1 to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
</head> | |
<body> | |
<div id="test">{{ amazing }}</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
new Vue({ | |
el: '#test', | |
data() { | |
return { | |
amazing: Date.now() | |
} | |
}, | |
ready() { | |
let self = this | |
setInterval(() => {self.amazing = Date.now()}, 100) | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"vue": "1.0.16" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var _vue = require('vue'); | |
var _vue2 = _interopRequireDefault(_vue); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
new _vue2.default({ | |
el: '#test', | |
data: function data() { | |
return { | |
amazing: Date.now() | |
}; | |
}, | |
ready: function ready() { | |
var self = this; | |
setInterval(function () { | |
self.amazing = Date.now(); | |
}, 100); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment