mirror of
https://github.com/exane/not-gwent-online
synced 2025-11-28 09:53:08 +00:00
rewrite structure and bit chat styling
This commit is contained in:
5
site/client/app/components/chat.js
Normal file
5
site/client/app/components/chat.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
|
||||
template: require('../views/chat.html')
|
||||
|
||||
};
|
||||
@@ -1,5 +1,4 @@
|
||||
var Router = require('director').Router;
|
||||
var router = new Router();
|
||||
var router = require('./../routes');
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -7,7 +6,7 @@ module.exports = {
|
||||
|
||||
methods: {
|
||||
changeView: function(view) {
|
||||
router.setRoute('test');
|
||||
router.changeRoute(view);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user