ArgueJS icon indicating copy to clipboard operation
ArgueJS copied to clipboard

give example of the require line

Open kimptoc opened this issue 12 years ago • 2 comments

Probably my js noobness, but thought it might help :)

kimptoc avatar May 06 '13 21:05 kimptoc

Hello,

I uses something like...

var getArguments = require('arguejs');
var signature = {myParameterName: String};
var _args =  getArguments(signature, arguments);
console.log(_args.myParameterName);

In the examples of this project he uses...

var __ = require('arguejs');
var signature = {myParameterName: String};
var _args =  __(signature, arguments);
console.log(_args.myParameterName);

Hope that helps...

johmoh avatar May 08 '13 14:05 johmoh

Hi,

Thanks for that - I am adding i18n, and I just noticed that they use double underscore too - so I will be changing my arguejs calls as you suggest.

~kimptoc

kimptoc avatar May 08 '13 17:05 kimptoc