ryanwischkaemper / aurelia-nw

NW.js (nodewebkit) app with Aurelia
The Unlicense
3 stars 1 forks source link

help me Im using node webkit..and when i try to create instance of node webkit menu i get error in in Error line .. this is my code #8

Open himanshu-teotia opened 8 years ago

himanshu-teotia commented 8 years ago

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 

}

}

ryanwischkaemper commented 8 years ago

@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?

himanshu-teotia commented 8 years ago

didn't get the value of menu