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
var Example = Vue.extend({ | |
template: '<div>{{ message }}</div>', | |
data: function () { | |
return { | |
message: 'Hello Vue.js!' | |
} | |
} | |
}) | |
// register it with the tag <example> |
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
var example = new Vue({ | |
data: { | |
a: 1 | |
}, | |
computed: { | |
b: function () { | |
return this.a + 1 | |
} | |
} | |
}) |
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
new Vue({ | |
el: ‘#example’, | |
data: object | |
}) |
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
<div id=”example”> | |
{{ message }} | |
</div> |
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
var object = { | |
message: 'Hello world!' | |
} |
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
#!/usr/bin/env bash | |
# get files to be linted | |
FILES=$(git diff --cached --name-only | grep -E '^src|^test/unit/specs|^test/e2e') | |
# lint them if any | |
if [[ $FILES ]]; then | |
./node_modules/.bin/eslint $FILES | |
fi |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="2.4"> | |
<dict> | |
<key>author</key> | |
<string>Mattia Astorino (http://astorinomattia.it)</string> | |
<key>name</key> | |
<string>Material Theme</string> | |
<key>semanticClass</key> |
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
// vue internals | |
var _ = require('../src/util') | |
var Path = require('../src/parsers/path') | |
// original implementation using native sort | |
var original = function (arr, sortKey, reverse) { | |
if (!sortKey) { | |
return arr | |
} | |
var order = 1 |
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
compress: { | |
pure_funcs: [ | |
'_.log', | |
'_.warn', | |
'_.assertAsset', | |
'enableDebug' | |
] | |
} |
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
var vm = new Vue({ | |
components: { | |
example: { | |
data: function () { | |
return { a: 1 } | |
} | |
} | |
} | |
}) |