Closed sean-hill closed 8 years ago
Sorry... just change the final lines var fooModule = Studio.module('Foo'); instead of var fooModule = Studio('Foo');
var fooModule = Studio.module('Foo'); //this is the wrong line
var barService = fooModule('bar');
barService();
If you want to print something to the console, just change barService() for barService().then((res)=> console.log(res))
I also fixed the readme.md example... thx :)
Hey @ericholiveira,
The example for ES6 classes, copied and pasted, throws this error: