Commit Graph

1688 Commits

Author SHA1 Message Date
Patrice Chalin 0c0c6f69f3 docs(toh-5): TS/Dart review, and Dart resync (#2115)
* docs(toh-5): review and update/resync Dart

**NOTE: run `gulp add-example-boilerplate` after pulling in the
commit.**

This is preparatory work for #2035.
As part of the the chapter review, the Dart .jade was enhanced to use
Jade extends (#2018).
By the same token it contributed to a post-RC5 resync (#2077). Other
key changes:

Dart and TS code:
- Eliminated `styles.1.css` in favor of docregions in `styles.css`.
- `docregion` tags renamed in a few places.
- **No other code changes**.

TS prose
- Fixed: misnamed variable `routing` -> `appRoutes`.
- All other changes are **minor copy edits**, or changes to support
Dart via Jade extends.

Diff of generated HTML for TS chapter was inspected to ensure only
minor copy edits prevailed (i.e., that the support for Jade extends had
no impact on the generated HTML).

* docs(toh-5): edits after doing tutorial

- Some adjustments following actually doing the tutorial. In some cases code shown (e.g. this is what file foo should look like now) didn't match what the user would have. E.g., lingering @Input on the hero property.
- Fixed some lingering deprecated-router prose elements on TS side (e.g., still referring to a route by the old string names like `HeroDetail`).
- Added extra step to `app.component.ts` creation rather than having a critical-call-out later on.
- Reorder some prose for better harmony between TS and Dart prose (also improves the flow).
- Moved the `styleUrls` call-out to the point of first use.

* post-review changes

* more post-review changes

* toh-6 cache update
2016-08-17 13:31:40 -07:00
Patrice Chalin 9869bf585d docs(toh-6): systemjs.config.json -> systemjs.config.js (#2116)
Copyedit in file tree.
2016-08-17 11:11:50 -07:00
Patrice Chalin 68c15c12e5 docs({quickstart,di}): fix code excerpts and titles (#2118) 2016-08-17 09:21:11 -07:00
Patrice Chalin 160b9d2812 tests(toh-[1-4]): e2e - support space in hero name (#2117) 2016-08-17 09:20:17 -07:00
Patrice Chalin c931b56f4a chore(toh-5): improve e2e test coverage and readability (use async/await) (#2092)
* chore(toh-5): improve e2e test coverage

Improved test coverage. Also updated tests to make use of async/await
(so tests are more readable).

* lint feedback
2016-08-17 09:18:23 -07:00
Patrice Chalin 35b54383c2 docs(toh-5): add file to cache (#2102)
* toh-pt5: cached version before new router was introduced

* toh-pt5: refreshed cached copy from latest (post-RC5)
2016-08-12 13:39:17 -07:00
Patrice Chalin dfd46af604 docs(toh-6): post-RC5 Dart resync and TS fixes (#2095)
* toh-6: trim spaces from cache file to simplify diff

* toh-6: copy latest over cache before editing latest

* docs(toh-6): post-RC5 Dart resync and TS fixes

Contributes to #2077.

TS-side changes include:
- Merged three versions of `app/app.module{,1,2}.ts` into a single file
and used docregions instead.
- Misnamed files:
  - `rxjs-operators.ts` -> `rxjs-extensions.ts`
  - `hero-search.service.html` -> `hero-search.component.html`
- Fixed BAD FILENAME error.

Lint reports no errors and toh-6 e2e tests pass.
2016-08-12 11:21:16 -07:00
Patrice Chalin ea457825b8 docs(router): fix markdown, and example mixin cleanup (#2101)
* docs(router): fix markdown and example mixin cleanup

- Fixed: markdown text not under `:marked` region (and so that text was
not showing up in the generated html).
- Fixed: code excerpt title `constructor` -> `isSelected`.
- Cleanup of all makeExample mixin uses.

This cleanup will help make it easier to record differences with the
deprecated router chapter (which must have app-relative makeExample
paths).

* post-review updates

Found another instance of markdown (a heading) outside of a `:marked` region.
2016-08-12 11:20:44 -07:00
Patrice Chalin a771a6e0d0 chore(ts/cache): add glossary (#2098) 2016-08-12 11:14:44 -07:00
Patrice Chalin 7075cdbefa docs(hierarchical-di): post-RC5 Dart resync (#2080)
Contributes to #2077.
Depends on #2078.
2016-08-11 14:43:59 -07:00
Patrice Chalin 596b6862de docs(template-syntax/dart): enhancements to example code (#2051)
* docs(template-syntax/dart): enhancements to example code

Enhancements to `NgStyle` section in support of its API docs.
- Add feature supporting interactive update of a paragraph’s style.
- Add full type declarations.
- Replace bogus implementation of `getStyles()`.

* dartfmt updates
2016-08-11 11:47:59 -07:00
Patrice Chalin 2ca6d6567b chore(quickstart/dart): refresh ts _cache (#2089)
Cf. #2088 and #2077.
2016-08-11 11:29:19 -07:00
Patrice Chalin 19d06061c5 docs(quickstart): post-RC5 Dart resync (#2078)
* docs(quickstart): post-RC5 Dart resync

- Resync Dart QS prose with TS, post RC5.
- Added to-be-shared Jade `var` definitions to `_util-fns.jade`.
- Delete cached QS jade file.
- Eliminate the stub file `styles.1.css` in favor of a `docregion` in
the main `styles.css`.

This commit requires a `gulp add-example-boilerplate` after pulling it in.
Contributes to #2077.

* post-review edits
2016-08-10 13:32:07 -07:00
Patrice Chalin ccdc8c0cec chore(pipes): disable broken e2e tests (#2068) 2016-08-10 08:00:04 -07:00
Trotyl Yu 16731979a0 docs(glossary): Fix ECMAScript description
closes #2030
ES2016(ES7) has already been officially published.
2016-08-09 22:44:11 -07:00
Fredy Treboux 124a03ae09 docs(lifecycle-hooks): minor typo.
closes #2045
2016-08-09 22:36:55 -07:00
Aysegul Yonet 5de00cc591 docs(rc4-to-rc5):fix npm for angular-cli
closes #2072
2016-08-09 22:35:23 -07:00
Trotyl Yu b7e42e2d32 docs(ngmodule): Fix typo
closes #2073
2016-08-09 22:33:26 -07:00
Ward Bell d412470b38 Update router.jade 2016-08-09 22:29:27 -07:00
Brandon Roberts 420b9ca59e docs(router): Fixed lazy loading initial example
closes #2070
2016-08-09 20:00:08 -07:00
Ward Bell 162b1773be docs(rc4-to-rc5): fix npm for MD
closes #2067
2016-08-09 17:55:32 -07:00
Benjamin Dopplinger c8cc3226cc docs(toh-pt5/dart): remove an already existing line (#2056)
Remove an import statement as the package is already imported at this stage of the tutorial.
2016-08-09 17:17:56 -07:00
Patrice Chalin 1ae7b31f61 chore(e2e): fix user-input test
closes #2065
There seemed to be a timing issue. A simple rewrite using async/await
seems to solve the problem.
2016-08-09 16:51:37 -07:00
Jesús Rodríguez 787ca1600d docs(ngmodule): remove module.id
closes #2064
2016-08-09 16:27:01 -07:00
Ward Bell 38a59f91bd docs: small, quick fixes for RC5 including link repair. (#2062) 2016-08-09 15:56:47 -07:00
Naomi Black 7bc0877d31 events(aug9): Add anglebrackets 2016-08-09 13:06:00 -07:00
Naomi Black b4a7b31498 news(aug9): news for the rc5 release 2016-08-09 12:39:51 -07:00
Jesús Rodríguez b54db9ab5f chore: swap reflect on webpack to core-js 2016-08-09 12:39:28 -07:00
Ward Bell aef8aa94aa docs(ngmodule): add chapter 2016-08-09 12:31:52 -07:00
Ward Bell fe35bc6c31 docs(rc4-to-rc5): New RC4->RC5 migration cookbook. 2016-08-09 12:28:25 -07:00
Peter Bacon Darwin d79adb2422 docs(rc5): update docs and plunkers for rc5 2016-08-09 11:48:07 -07:00
Benjamin Dopplinger ef1171bd36 docs(toh-pt5/dart): fix grammar mistakes (#2057) 2016-08-09 10:43:42 -07:00
Patrice Chalin 841db9e817 docs(toh-6): show provider to use with a real back end (#2059)
Fixes #2055.
2016-08-09 10:41:05 -07:00
Patrice Chalin 5ce8304227 docs(dart): decouple from TS .jade files temporarily (#2044)
Addresses #2043.
2016-08-08 15:48:45 -07:00
Patrice Chalin b796d4b97d chore(dart-doc-sync): data files for component-styles and lifecycle-hooks (#2052)
Note that component-styles and lifecycle-hooks examples have been
sync’d for a while, though they were missing `.docsync.json` files.
2016-08-08 12:48:44 -07:00
Peter Bacon Darwin 35b2dbd867 docs(tutorial): text following a node requires a dot 2016-08-06 07:58:28 +01:00
Peter Bacon Darwin 9f03fca039 docs(cookbook): text following a node requires a dot 2016-08-06 07:45:32 +01:00
Jesús Rodríguez 1a8bbea1d1 docs(pipes): add a section about the Intl API
closes #1999
2016-08-05 17:12:10 -07:00
Jesús Rodríguez 22a3704947 chore: update next-item for hidden
closes #2032
2016-08-05 17:04:57 -07:00
Matt Ezell 28174673fe docs(router): formatting - Back Quote to Wrap Identifier
closes #2020
2016-08-05 17:03:25 -07:00
Brandon Roberts 14ad2a8c68 fix(docs): Renamed files for JavaScript/Dart dynamic form cookbook
closes #2010
2016-08-05 16:57:48 -07:00
Ciro Nunes f0272f26f4 docs(glossary): fix link to `component` for DI def
closes #2009
2016-08-05 16:54:56 -07:00
wajdibr 2328b5843b docs(contribute): remove the word beta
closes #1975
2016-08-05 16:53:39 -07:00
Adam d26afa90fd docs(toh-6): Move styles from sample.css to heroes.component.css
closes #1751
Move additional styles from `sample.css` to `hero-search.component.css`.
Edit tutorial to reflect the removal of `sample.css` and the change to `heroes.component.css`.
Edit tutorial to reflect the addition of `hero-search.component.css` file.
Edit `hero-search.component.ts` to include styles from `hero-search.component.css`.
Remove reference to `/public/docs/_examples/toh-6/ts/sample.css` from `/public/docs/_examples/toh-6/ts/index.html`.
2016-08-05 16:45:53 -07:00
Brandon Roberts b93fb12fea chore(examples): Updated live example links to use helper directive
closes #2005
2016-08-05 16:41:45 -07:00
Patrice Chalin 531d6a8bce docs(glossary/dart): recover content (#2037)
Fixes #1918.

Follow-up work will be done under #2036.
2016-08-05 12:13:29 -07:00
Patrice Chalin 6a2cad2640 docs(chore): ensure {forms|router}{,-deprecated} chapters have proper content (#2034)
Fixes #2026.
2016-08-05 11:13:32 -07:00
Kathy Walrath a423724847 docs(dart): update angular.io/dart's link to change log 2016-08-03 12:29:04 -07:00
Patrice Chalin 8a6c5b5725 docs(toh-6): add hero search to Dart; minor edits to TS (#2018)
* docs(toh-6/dart): add hero search

Fixes #1924.

* docs(toh-6/ts): minor updates

* post-review updates

* post-review updates
2016-08-02 09:59:35 -07:00
Patrice Chalin a49ecc7fd8 docs(architecture): give example of libraries in TS and Dart (#2015)
Follow-up to
https://github.com/angular/angular.io/pull/1972#issuecomment-235738082
2016-08-01 14:34:36 -07:00