blinx
Version:
The Scalable JavaScript Application Framework
24 lines (19 loc) • 393 B
JavaScript
import template from "./template.html";
import "./style.less";
import config from "./config";
export default {
config,
incrementCounter: function(){
++this.counter;
console.log(this.counter);
},
showConsoleMessage: function(message){
let msg = message;
if(typeof message === "object"){
msg = JSON.stringify(message);
}
console.log(msg);
},
counter: 0,
template
};