Open XiaofengXie16 opened 3 years ago
I am not sure if this the best platform for reporting the errors in the book. On page 38, the path seems to be wrong for the code below
window.nav.get('Header').then(factory => console.log(factory()));
We should specify the param as ./Header instead of Header for the get function. Otherwise , we will get a promise reject error in the console.
./Header
Header
Indeed on the above.
In addition to this, if we specify the param as ./Header we do get the function but I noticed that the part factory => console.log(factory()) does not log anything on the console.
factory => console.log(factory())
I am not sure if this the best platform for reporting the errors in the book. On page 38, the path seems to be wrong for the code below
window.nav.get('Header').then(factory => console.log(factory()));
We should specify the param as
./Header
instead ofHeader
for the get function. Otherwise , we will get a promise reject error in the console.