angular-docs-cn/aio
Peter Bacon Darwin fe962f6de7 fix(aio): LocationService urls should never start with a slash
There is a weirdness in the Angular Location service.
If the `baseHref` is only a single slash (`'/'`) then it
changes it to be an empty string (`''`). The effect of this
is that `Location.normaliseUrl(url)` does not strip off the
leading slash from url paths.

The problem is that the leading slash only appears on the
initial Location path, and not on urls that arrive from subscribing
to the Location service.

This commit is a workaround this problem.
2017-03-06 22:27:32 -08:00
..
content docs(aio): make home doc the default home page 2017-03-06 22:27:32 -08:00
e2e test(aio): fix up links in app e2e test 2017-03-02 00:21:06 -08:00
src fix(aio): LocationService urls should never start with a slash 2017-03-06 22:27:32 -08:00
transforms build(aio): generate marketing docs JSON files 2017-03-02 00:21:06 -08:00
.angular-cli.json feat(aio): add search service and search UI 2017-03-02 00:21:06 -08:00
.firebaserc build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
README.md build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
database.rules.json build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
firebase.json fix(aio): use cleanUrls option rather than bruteforce rewriting rule (#14547) 2017-02-16 15:26:59 -08:00
karma.conf.js build(aio): upgrade to CLI beta.32 and MD beta.2 2017-02-22 17:53:56 -08:00
package.json build(aio): move gulp tasks to package.json 2017-03-05 08:41:26 -08:00
protractor.conf.js build(aio): upgrade to CLI beta.32 and MD beta.2 2017-02-22 17:53:56 -08:00
tslint.json build(aio): upgrade to CLI beta.32 and MD beta.2 2017-02-22 17:53:56 -08:00
yarn.lock build(aio): upgrade to angular 4.0.0-rc.2 2017-03-05 08:41:26 -08:00

README.md

Site

This project was generated with angular-cli version 1.0.0-beta.26.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Deploying to GitHub Pages

Run ng github-pages:deploy to deploy to GitHub Pages.

Further help

To get more help on the angular-cli use ng help or go check out the Angular-CLI README.