commit17c7e15467Author: Filipe Silva <[email protected]> Date: Mon Nov 14 23:11:37 2016 +0000 chore: update to 2.2.0 (#2797) commit1e5facfb98Merge:5c4cc9adb0fac9Author: Ward Bell <[email protected]> Date: Mon Nov 14 12:44:51 2016 -0800 Merge pull request #2799 from IdeaBlade/docs-changelog-2.2.0 chore(changelog): update docs changelog for Ng v.2.2.0 commit5c4cc9a3c8Merge:43457e91afe5dcAuthor: Ward Bell <[email protected]> Date: Mon Nov 14 12:43:09 2016 -0800 docs(router): Updated usage of observables in router tutorial and developer guide (#2696) Moved route configuration into separate variable for consistency Added async pipe to handle subscriptions for list items commit43457e9765Merge:a423a5a2649647Author: Jesús Rodríguez <[email protected]> Date: Mon Nov 14 21:38:49 2016 +0100 chore: add upgrade/static to API reference (#2755) commit1afe5dc97dAuthor: Brandon Roberts <[email protected]> Date: Sat Oct 29 16:08:54 2016 -0500 docs(router): Updated usage of observables in router tutorial and developer guide Moved route configuration into separate variable for consistency Added async pipe to handle subscriptions for list items commitdb0fac94c9Author: Ward Bell <[email protected]> Date: Mon Nov 14 10:48:09 2016 -0800 chore(changelog): update docs changelog for Ng v.2.2.0 commita423a5abc7Author: ikilled <[email protected]> Date: Mon Nov 14 18:39:46 2016 +0000 clicking on Books & Training sends user to Education (#2701) When user clicks in Books & Training item in footer the website should take them to Education section (anchor) in the middle of the page, not to the top where Development section is. commitd63b1ccea3Merge:f6277068508140Author: Ward Bell <[email protected]> Date: Mon Nov 14 10:35:48 2016 -0800 docs(router): fixed verbiage about router-outlet (#2746) commitf627706779Author: Ward Bell <[email protected]> Date: Mon Nov 14 10:26:13 2016 -0800 docs(cookbook-aot-compiler): improve Ahead-of-Time compilation cookbook (#2798) closes #2790 commit75464d585cMerge:78e258402f5559Author: Ward Bell <[email protected]> Date: Mon Nov 14 09:34:36 2016 -0800 Merge pull request #2794 from IdeaBlade/chalin-guide-misc-fix-1113 docs: guide/index misc Jade fixes commit78e25840b2Merge:182493f85062c4Author: Ward Bell <[email protected]> Date: Mon Nov 14 09:33:55 2016 -0800 Merge pull request #2795 from IdeaBlade/chalin-util-js-getExampleName-1114 chore(util.js): getExampleName - support optional .html suffix commit182493f877Merge:9e9666b53f5538Author: Ward Bell <[email protected]> Date: Mon Nov 14 09:28:40 2016 -0800 feat(cb-ts-to-js): add es6 examples (#2606) * feat(cb-ts-to-js): add es6 examples update docshredder to shred .es6 optimized focus gulp task convert imports and metadate sections add DI section add host and query metadata section add intro fix capitalization and grammar * docs(ts-to-js): ward's edits (incomplete) * docs(ts-to-js): add separate template files for some components * docs(cb-ts-to-js): refactor sample code commit53f5538859Author: Ward Bell <[email protected]> Date: Sun Nov 13 14:09:28 2016 -0800 docs(cb-ts-to-js): refactor sample code commit9e9666b2ccAuthor: Patrice Chalin <[email protected]> Date: Mon Nov 14 08:34:10 2016 -0800 docs(template-syntax/dart): updates to match TS (#2751) * docs(template-syntax): refresh _cache * docs(template-syntax/dart): updates to match TS - Propagates TS-side changes: - update #2639 - new two-way binding section, and - fix #2687 - invalid attr syntax - Fixes - #1898 - currency symbols - #2748 - Dart template-syntax e2e is failing - #2749 - deprecated `[className]` * updated _cache file following Kathy's post-review edits * Post Ward's review w/ cache updated - Keep `my-` and `my` prefixes on selectors (for components and directives, respectively). - Drop `my-` from file names. - Drop `My` as component class prefix. commit5dcffd69dcAuthor: Patrice Chalin <[email protected]> Date: Sun Nov 13 19:37:13 2016 -0800 docs: dart glossary - fix misnamed Jade block commit6680acc513Merge:14db8383b03573Author: Kathy Walrath <[email protected]> Date: Mon Nov 14 08:31:11 2016 -0800 docs(toh): avoid dup header title (#2796) * remove redundant headings * update _cache * misc: make block comment a Jade comment (This prevents the text from appearing in the generated HTML as an HTML comment.) commit3b03573f34Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 05:30:05 2016 -0800 misc: make block comment a Jade comment (This prevents the text from appearing in the generated HTML as an HTML comment.) commit470426d5e0Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 05:25:36 2016 -0800 update _cache commitc12d75a477Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 05:23:35 2016 -0800 remove redundant headings commit85062c47caAuthor: Patrice Chalin <[email protected]> Date: Mon Nov 14 04:56:12 2016 -0800 chore(util.js): getExampleName - support optional .html suffix commit02f55592b2Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 04:29:17 2016 -0800 docs: guide/index misc Jade fixes - Eliminate use of deprecated `clear=“all”` in `<br>`. - No need for local `langName`; use global `_Lang` var instead. - Remove duplicate id `learning-path`. commit14db838f8bAuthor: Naomi Black <[email protected]> Date: Sun Nov 13 21:48:52 2016 -0500 news(nov): Some news and a blog post update commiteff32ecbddAuthor: Naomi Black <[email protected]> Date: Sun Nov 13 21:48:37 2016 -0500 chore(bios): update some bios for leads commit3ee36fbba2Author: koyner <[email protected]> Date: Sun Nov 13 22:59:59 2016 +0100 docs(forms): grammar fix (#2764) commitb11438f211Author: Ward Bell <[email protected]> Date: Fri Nov 11 19:44:00 2016 -0800 docs(ts-to-js): add separate template files for some components commit33b61977b2Author: Ward Bell <[email protected]> Date: Thu Nov 3 01:37:55 2016 -0700 docs(ts-to-js): ward's edits (incomplete) commit12eb19fa3cAuthor: Filipe Silva <[email protected]> Date: Thu Oct 13 17:59:00 2016 +0100 feat(cb-ts-to-js): add es6 examples update docshredder to shred .es6 optimized focus gulp task convert imports and metadate sections add DI section add host and query metadata section add intro fix capitalization and grammar commit64a8754386Author: Patrice Chalin <[email protected]> Date: Thu Nov 10 20:01:36 2016 -0800 example(template-syntax): follow style-guide and other updates (#2750) commit7619cdf4a4Author: Jesús Rodríguez <[email protected]> Date: Thu Nov 10 23:47:30 2016 +0100 chore: ability to open a plunker on a specific file (#2778) commit0161d9db39Author: Filipe Silva <[email protected]> Date: Thu Nov 10 22:45:22 2016 +0000 chore: ignore debug.log file (#2785) This file is generated when running `gulp e2e` and often enough committed by mistake. /cc @foxandxss commitf92983cc6fAuthor: Jesús Rodríguez <[email protected]> Date: Thu Nov 10 23:44:51 2016 +0100 docs(ngmodule): fix plunkers (#2786) commit03db4bbc48Author: Martin Eckardt <[email protected]> Date: Wed Nov 9 17:43:40 2016 +0100 docs(a1-a2): fix link to Filter/Pipes (#2770) commit60565a5cf1Author: Pavol Pitonak <[email protected]> Date: Wed Nov 9 17:42:57 2016 +0100 docs(testing): configureTestModule -> configureTestingModule (#2767) commitec471974a7Author: Catalin Zalog <[email protected]> Date: Wed Nov 9 18:41:56 2016 +0200 docs(style-guide): fix missing *.ts (#2763) commit234e468d5dAuthor: Patrice Chalin <[email protected]> Date: Tue Nov 8 08:21:02 2016 -0800 docs: intra-site links should be relative Contributes to #2772. commit6b37da78e4Author: Patrice Chalin <[email protected]> Date: Tue Nov 8 09:27:10 2016 -0800 docs(forms/dart): remove mention of FORM_DIRECTIVES Fixes #2752 commitc24dd074a6Author: Patrice Chalin <[email protected]> Date: Tue Nov 8 14:48:03 2016 -0800 docs(toh-5/dart): use routerLink in dashboard (#2744) * docs(toh-5/dart): use routerLink in dashboard * minor edits to TS jade * remove dart/toh-pt5 from bad-code-excerpt-skip-patterns commit2808878c36Author: Patrice Chalin <[email protected]> Date: Tue Nov 8 07:41:27 2016 -0800 chore(deploy): don't name project in firebase deploy Naming the project would sometimes cause gulp to report `An unexpected error has occurred` with exit code 2. commit2649647ecbAuthor: Jesus Rodriguez <[email protected]> Date: Sat Nov 5 00:37:47 2016 +0100 chore: add upgrade/static to API reference commit850814097fMerge:37f93bcb1c2c27Author: Adrian Irwin <[email protected]> Date: Thu Nov 3 17:27:43 2016 -0700 Merge branch 'router' of https://github.com/adrianirwin/angular.io into router commit37f93bc0cbAuthor: Adrian Irwin <[email protected]> Date: Thu Nov 3 17:25:55 2016 -0700 docs(router): fixed verbiage and example of how routed views are related to the router outlet commitb1c2c27d36Author: Adrian Irwin <[email protected]> Date: Thu Nov 3 16:57:56 2016 -0700 docs(router): fixed verbiage and example of how routed views are related to the router outlet
Angular.io
Angular.io is site for Angular documentation .
This site also includes links to other helpful angular resources including Angular 2, Angular 1, Angular Material, and AngularFire.
Issues
Please file Developer Guide, Cookbook, and code sample issues only in this Angular.io github repo.
Angular API issues, cheatsheet corrections, feature requests, defect reports, and technical questions concerning Angular itself belong in the angular source code github repo. We can't handle those topics here and will ask you to re-post them on the angular repo.
How you can help
Filing issues is helpful but pull requests that improve the docs are even better!
Learn how to contribute to Angular.io.
Important
: Do NOT make changes to cached files under
public/docs/ts/_cache. Cached files are updated through a separate workflow.
Development Setup
This site relies heavily on node and npm.
-
Make sure you are using at least node v.5+ and latest npm; if not install nvm to get node going on your machine.
-
Install these npm packages globally:
npm install -g harp gulp -
Clone this repo, the angular/angular source code repo, and the dart-lang/angular2 source code repo to the same parent directory. The three cloned repo directories must be siblings, with the latter two repo directories named angular and angular-dart, respectively.
-
cd into root directory
angular.io/ -
install the all-docs local packages by running
npm install
You probably must rebuild
node-sassin a separate step:npm rebuild node-sass
- See below for code sample development preparation.
Content Development
All documentation content is written in Jade which has its own syntax.
Be aware of the strict demands imposed by this significant-whitespace language.
We strongly recommend running one of the gulp serve-and-sync commands described below
while editing content so you can see the effect of your changes as you type.
The documentation relies on specific styles and mixins. Learn about those in the documentation styleguide.
The jade documentation files are language-specific directories under either public/docs/.
For example, all of the TypeScript docs are in public/docs/ts/latest, e.g.
public/docs/ts/latest/quickstart.jadepublic/docs/ts/latest/guide/architecture.jadepublic/docs/ts/latest/cookbook/component-communication.jadepublic/docs/ts/latest/tutorial/toh-pt5.jade
Local server with watches and browser reload
- cd into root directory
angular.io/ - run
gulp serve-and-sync - browser will launch on localhost:3000 and stay refreshed automatically.
If you are only going to work on a specific part of the docs, such as the dev guide, then you can use one of the more specific gulp tasks to only watch those parts of the file system:
gulp serve-and-sync: watch all the local Jade/Sass files, the API source and examples, and the dev guide filesgulp serve-and-sync-api: watch only the API source and example filesgulp serve-and-sync-devguide: watch only the dev guide filesgulp build-and-serve: watch only the local Jade/Sass files
Code Sample Development
All documentation is supported by sample code and plunkers.
Such code resides in the public/docs/_examples directory, under page-specific directories, further divided by language track.
For example, the TypeScript QuickStart sample is in public/docs/_examples/quickstart/ts.
All samples are in a consistent directory structure using the same styles and the same npm packages, including the latest release of Angular. This consistency is possible in part thanks to gulp-driven tooling. To run the samples locally and confirm that they work properly, take the following extra steps to prepare the environment:
-
cd to
public/docs/_examples -
install the canonical node packages for all samples by running
npm install -
cd back up to
angular.ioroot:cd ../../.. -
run
gulp add-example-boilerplate(elevate to admin on Windows) to copy canonical files to the sample directories and create symlinks there for node_modules.
Now cd into any particular sample's language directory (e.g., public/docs/_examples/quickstart/ts) and try:
npm startto simultaneously compile-with-watch and serve-in-browser-with-watchnpm run tscto compile onlynpm run liteto serve-and-watch in browser
Look at the scripts in package.json for other options.
Also, open any plunkr.no-link.html to see the code execute in plunker
(you may have to run gulp build-plunkers first to create/update).
You must check that your example is free of lint errors.
gulp lint
Sample end-to-end tests
All samples should be covered to some degree by end-to-end tests:
gulp run-e2e-teststo run all TypeScript and JavaScript testsgulp run-e2e-tests --lang=dartto run all Dart testsgulp run-e2e-tests --lang=allto run TypeScript, JavaScript, and Dart testsgulp run-e2e-tests --filter=quickstartto filter the examples to run, by namegulp run-e2e-tests --fastto ignore npm install, webdriver update and boilerplate copy
Any combination of options is possible.
Resetting the project
This project generates a lot of untracked files, if you wish to reset it to a mint state, you can run:
git clean -xdf
Also, there is a script available for Linux, OSX and Windows Gitbash users that will setup the project using the steps shown in this section:
./scripts/install.sh
Run with current build instead of release packages
Can switch the @angular packages in ~/public/docs/_examples/node_modules to the current build packages with
gulp install-example-angular --build
Restore to RELEASE packages with
gulp install-example-angular
These commands will fail if something is locking any of the packages ... as an IDE often does.
The symptom typically is an error trying to
rm -rf node_modules/@angular.Solution: unlock the hold on the package(s). In VS Code, re-load the window (
cmd-Pthen enter>relow).
Technology Used
- Angular 1.x: The production ready version of Angular
- Angular Material: An implementation of Material Design in Angular.js
- Gulp: node-based tooling
- Harp: The static web server with built-in preprocessing.
- Sass: A professional grade CSS extension language
- Normalize: A modern, HTML5-ready alternative to CSS resets
- Grids: A highly customizable CSS Grid Framework built with Sass
- Prettify: A JS module and CSS for syntax highlighting of source code snippets.
- Icomoon: Custom built icon fonts
License
Powered by Google ©2010-2016. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.