From 1d646d6c4feeb15e4788496df90f179a6e61f549 Mon Sep 17 00:00:00 2001 From: Chaitanya Thengdi Date: Fri, 1 Sep 2017 12:47:06 +0530 Subject: [PATCH] Fix errors on two pages of ES6 Tutorial This commit incorporates the following fixes: 1. Rename webpack config entry from app to main This fix renames the entry 'app' back to 'main' in webpack.config.js. In webpack.config.js, the entries are defined as 'app' and 'ratefinder'. Due to this, the compiled js files will be app.bundle.js and ratefinder.bundle.js,which means the old main.bundle.js will never be updated. 2. Add code for showing table to index.html This commit adds a new point to part 1 of the Classes sub-tutorial, which adds the missing element to index.html. Without this, the table will not be visible. --- classes/index.html | 8 +++++++- promises/index.html | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/classes/index.html b/classes/index.html index a83b9b3e7..c1318ac40 100644 --- a/classes/index.html +++ b/classes/index.html @@ -156,6 +156,12 @@

Part 1: Using a Class

}); +
  • Add the following code to index.html below the 'Monthly Rate' heading:

    + +
    
    +<table id="amortization"></table>
    +
  • +
  • On the command line, type the following command to rebuild the application:

    npm run webpack
    @@ -357,4 +363,4 @@ 

    Additional Resources

    - \ No newline at end of file + diff --git a/promises/index.html b/promises/index.html index 1d204e63a..8972ae1b6 100644 --- a/promises/index.html +++ b/promises/index.html @@ -126,7 +126,7 @@

    Part 1: Use a Promise

  • Open webpack.config.js in your code editor. In module.exports, modify the entry and output items as follows:

    entry: {
    -    app: './js/main.js',
    +    main: './js/main.js',
         ratefinder: './js/ratefinder.js'
     },
     output: {
    @@ -330,4 +330,4 @@ 

    Additional Resources

    - \ No newline at end of file +