for intercept the angular2 "UrlResolver" class.
the official document has an example, shows how to extend and register it. and the demo here is just for the same purpose, but by another way.
- run command
npm i
to install packages. - run command
npm run tsc
to compile. - run command
npm run serve
to activate the demo site.