mirror of
https://github.com/exane/not-gwent-online
synced 2025-09-09 06:17:31 +00:00
redefine app structure
This commit is contained in:
19
site/client/app/modules/inner/components/chat.js
Normal file
19
site/client/app/modules/inner/components/chat.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
|
||||
template: require('../views/chat.html'),
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
message: ''
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
submitChat: function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
console.log(this.message);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
Reference in New Issue
Block a user