Last active
July 30, 2018 10:47
-
-
Save darktasevski/ec555bf61dcf6a40d193d8f0653d998c to your computer and use it in GitHub Desktop.
HelloWorld.js (Vue)
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: '#app', | |
| data: { | |
| title: 'Hello World', | |
| imgUrl: 'https://i.imgur.com/whm2eGE.jpg', | |
| }, | |
| methods: { | |
| changeTitle() { | |
| this.title = 'Hello World Updated!'; | |
| }, | |
| addSubtitle() { | |
| return 'Rise and shine, Mister Freeman.'; | |
| }, | |
| }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment