Importing {averageService} will fail because averageService.js has only getAverage function. This should be changed to: import {getAvg} from "./averageService;".
Now let's run webpack from the command prompt and click on the index.html, we can see that the new average function is up and running and has been included in the bundle.js file.
The displayed figure has no sense with the text above.
Other ways to use modules, one popular way is to use "export default" indicating that by default the average function will be the one exported, then we can directly use an import "alias" and this will point out to our averarge function.
I'm sure my English is not from Cambridge but how does this sound?
There are other ways to use modules, one popular way is to use "export default" indicating...
import {averageService} from "./averageService"
...
Good stuff, please don't hesitate creating a new branch and fixing what you have mentioned. I think the nonsense pic is fixed in a readme_es version but not on the english one.
Hi, I found some issues on this guide:
The name 00 Demo should be 00 BoilerPlate.
Importing {averageService} will fail because averageService.js has only getAverage function. This should be changed to:
import {getAvg} from "./averageService;"
.The displayed figure has no sense with the text above.
I'm sure my English is not from Cambridge but how does this sound? There are other ways to use modules, one popular way is to use "export default" indicating...
Add missing trailing semicolon :+1:. Add JavaScript syntax highlighting.