The repository for the Angular Essential Training course can be found at https://github.com/coursefiles/angular2-essential-training.
This is the old location of the code and is no longer being maintained
NOTE: This is an old repo. New repo can be found at:
Home Page: https://github.com/coursefiles/angular2-essential-training
The repository for the Angular Essential Training course can be found at https://github.com/coursefiles/angular2-essential-training.
This is the old location of the code and is no longer being maintained
While building example application with Angular 6, I found that MockXHRBackend class is not working properly with Angular 6 version. I got following error
ERROR TypeError: next.handle is not a function
at HttpXsrfInterceptor.push../node_modules/@angular/common/fesm5/http.js.HttpXsrfInterceptor.intercept (http.js:1748)
at HttpInterceptorHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptorHandler.handle (http.js:1137)
at HttpInterceptingHandler.push../node_modules/@angular/common/fesm5/http.js.HttpInterceptingHandler.handle (http.js:1788)
at MergeMapSubscriber.project (http.js:974)
at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (mergeMap.js:61)
at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (mergeMap.js:51)
at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:55)
at Observable._subscribe (scalar.js:5)
at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:42)
at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:28)
defaultErrorLogger @ core.js:1673
push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:1719
next @ core.js:4319
Appreciate if it will be possible to have an Angular 6 version.
What am I doing wrong?
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 verbose unsafe-perm in lifecycle true
7 info [email protected] Failed to exec prestart script
8 error [email protected] prestart: npm run clean
8 error Exit status 1
9 error Failed at the [email protected] prestart script.
9 error This is most likely a problem with the angular2-essential-training package,
9 error not with npm itself.
9 error Tell the author that this fails on your system:
9 error npm run clean
9 error You can get their info via:
9 error npm owner ls angular2-essential-training
9 error There is likely additional logging output above.
10 error System Darwin 15.6.0
11 error command "node" "/usr/local/bin/npm" "start"
12 error cwd /Users/allstonians02134/angular2-essential-training
13 error node -v v0.10.25
14 error npm -v 1.3.24
15 error code ELIFECYCLE
16 verbose exit [ 1, true ]
tsc && concurrently "tsc -w" "lite-server" fail on my system
Dear Justine,
Nice job! I wanted to try the app but somehow the base href causes not found errors on many files. Please find the log here.
GET http://localhost:63342/node_modules/core-js/client/shim.min.js
localhost/:9 GET http://localhost:63342/node_modules/zone.js/dist/zone.js
localhost/:10 GET http://localhost:63342/node_modules/reflect-metadata/Reflect.js
localhost/:12 GET http://localhost:63342/systemjs.config.js
localhost/:11 GET http://localhost:63342/node_modules/systemjs/dist/system.src.js
localhost/:13 GET http://localhost:63342/resets.css
localhost/:8 GET http://localhost:63342/node_modules/core-js/client/shim.min.js
(index):9 GET http://localhost:63342/node_modules/zone.js/dist/zone.js
(index):10 GET http://localhost:63342/node_modules/reflect-metadata/Reflect.js
(index):11 GET http://localhost:63342/node_modules/systemjs/dist/system.src.js
(index):12 GET http://localhost:63342/systemjs.config.js
(index):13 GET http://localhost:63342/resets.css
(index):22 Uncaught ReferenceError: System is not defined(anonymous function) @ (index):22
In tsconfig.json, the typescript target is es5. I got a pile of errors.
I changed that to es6 and it fixed the problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.