angular-docs-cn/aio
Georgios Kalpakas 8c726ea87e fix(aio): preserve space after anchor elements
Sometimes, depending on the length of lines, anchor elements would be formatted
incorrectly by `html.prettyPrint` and the space right after the element was
removed.

This was apparently caused by a bug in `html.prettyPrint` in combination with
its default behavior of wrapping lines at a specific limit (70 chars). Since the
output is only meant to be used as JSON string data, wrapping the lines makes it
less readable by adding unnecessary `\n`.

This commit disables the line wrapping, which effectively avoids the bug that
was responsible for incorrectly formatting anchor elements and surrounding
space.

Related to #15681.
2017-04-01 18:23:01 +01:00
..
aio-builds-setup build(aio): update project config for @angular/cli v1.0.0 2017-03-27 11:55:26 -07:00
content feat(aio): add about component and data 2017-04-01 07:49:45 +01:00
e2e feat(aio): refactors AppComponent and its kids + sidenav hiding (#15570) 2017-03-29 14:13:40 -07:00
scripts build(aio): copy examples boilerplate 2017-03-31 09:57:43 +01:00
src style(aio): fix minor syntax error 2017-04-01 11:49:08 +01:00
transforms fix(aio): preserve space after anchor elements 2017-04-01 18:23:01 +01:00
.angular-cli.json feat(aio): improve ProgressiveWepApp-ability (#15628) 2017-03-30 12:35:15 -07:00
.firebaserc build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
.gitignore build(aio): update project config for @angular/cli v1.0.0 2017-03-27 11:55:26 -07: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): do not fallback to `index.html` for file requests (#15401) 2017-03-22 15:31:47 -07:00
karma.conf.js build(aio): update project config for @angular/cli v1.0.0 2017-03-27 11:55:26 -07:00
ngsw-manifest.json feat(aio): support @angular/service-worker using the CLI generated service worker manifest (#15042) 2017-03-10 14:05:29 -08:00
package.json build(aio): copy examples boilerplate 2017-03-31 09:57:43 +01:00
protractor.conf.js build(aio): update project config for @angular/cli v1.0.0 2017-03-27 11:55:26 -07:00
tsconfig.json build(aio): update project config for @angular/cli v1.0.0 2017-03-27 11:55:26 -07: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): copy examples boilerplate 2017-03-31 09:57:43 +01: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.