import {inject} from 'aurelia-framework';
var gui = require('nw.gui');
@inject(gui)
export class App {
constructor(gui) {
this.gui = gui;
}
attached() {
console.log("gui----",this.gui); // here i get a value of gui
var menu = new this.gui.Menu(); //i get error when i write this line Error Line
}
@himanshu-teotia Can you provide specific details about the error you are receiving? What file are you trying to do this in? What exactly does the error say?
import {inject} from 'aurelia-framework'; var gui = require('nw.gui'); @inject(gui) export class App { constructor(gui) { this.gui = gui; } attached() { console.log("gui----",this.gui); // here i get a value of gui
}