29 Commits

Author SHA1 Message Date
Kapunahele Wong
305b059809 docs: refactor routing doc ()
This rewrite changes headings to focus on user tasks rather than features,
verifies that content is up-to-date and complete, removes colloquial phrases,
adds prerequisites, and expands on a task-based section in the beginning
(a quick reference).

PR Close 
2020-04-16 10:36:01 -07:00
George Kalpakas
d707124fd9 test(docs-infra): fix unit tests and run them for specific docs examples on CI ()
Previously, only e2e tests were run for docs examples on CI. As a
result, unit tests (which are included in the zipped archives we provide
for users to download and play with the examples locally) were often
outdated and broken.

This commit configures specific docs examples that have meaningful unit
tests to run them on CI (via the `run-example-e2e.js` script). Where
necessary, the unit tests are fixed to ensure they pass and reflect the
changes in the corresponding component/service.
This commit also removes some auto-generated unit tests that are not
meaningful (e.g. make trivial assertions, such that a component instance
is truthy) and are often broken anyway (e.g. because the corresponding
component has been changed in ways that make the tests fail).

PR Close 
2020-04-06 15:31:07 -07:00
Sonu Kapoor
a7d5c55926 docs: fix routing code to use navigate ()
Previously, the example in the `router` guide was not
preserving the query params after logging in.

This commit fixes this by using `navigate` instead of
using `navigateByUrl`, which ignores any properties in
the `NavigationExtras` that would change the provided URL.

Fixes 34917

PR Close 
2020-02-24 09:00:03 -08:00
Sonu Kapoor
f49b45832c build(docs-infra): always specify a landing file for StackBlitz projects ()
The StackBlitz API (which we use to generate StackBlitz projects on the
fly, when a user clicks on a live example link in the docs) allows
specifying the file to open in the editor by passing a query param. If
no file is specified, StackBlitz opens a default one. In the past, it
used to be `main.ts` and nowadays it seems to be `app.component.ts`.

StackBlitz builder, the tool that we use to generate the StackBlitz
projects, allows specifying the primary file by setting the `file`
property in the corresponding `stackblitz.json`.

Previously, if the `file` property was not set, StackBlitz builder would
not specify a file, thus falling back on StackBlitz's default behavior.
This was not great, because the default behavior may change unexpectedly
is the future to something that is less useful for our users.

This commit change StackBlitz builder to always specify a primary file.
If no file is specified in `stackblitz.json`, the builder will look
for the first file that exists in the example from a list of predefined
files.

Partially addresses .

PR Close 
2020-01-22 13:45:23 -08:00
Alan Agius
8f389361ec docs: replace lazy loading import syntax parameter name ()
We replace `mod` with `m` to be in line with what the CLI generates.

PR Close 
2020-01-07 10:44:12 -08:00
Kapunahele Wong
d655093123 docs: add Animations import in Router doc ()
Fixes 

PR Close 
2019-11-25 22:37:55 -05:00
ajitsinghkaler
1217c6b7cc docs: replace class hero to interface wherever class properties not used ()
Fixes 

PR Close 
2019-11-25 11:37:39 -05:00
Brandon
e1af6e3c70 docs: use dynamic import syntax in examples using lazy loading ()
PR Close 
2019-05-21 09:09:35 -07:00
janith
c79bffaacb docs: remove gender prefixes from examples ()
PR Close 
2019-05-20 16:42:59 -07:00
Vani
ddb935fac7 docs: update examples region to match the description in the guide ()
PR Close 
2019-04-02 16:09:19 -07:00
Brandon
2064508876 docs: fix redirect with secondary outlet in router guide example ()
The URL wasn't be parsed into a UrlTree, so redirecting with a
secondary route went to a 404

Closes 

PR Close 
2019-03-14 10:51:52 -04:00
Brandon
1941d7c743 docs: ignore initial components for app compilation in router example ()
PR Close 
2019-02-11 17:09:25 +00:00
Brandon Roberts
0aafbac99b docs: clean up providedIn: 'root' syntax for router examples ()
PR Close 
2018-09-26 10:14:49 -07:00
Brandon Roberts
1fb3c4ffee docs: Update router guide to use Angular CLI ()
PR Close 
2018-09-26 10:14:49 -07:00
Brandon Roberts
3c8aa0b301 docs: Refresh content on routable animations for router guide ()
PR Close 
2018-09-26 10:14:49 -07:00
vovchik-manko
0bd2d7bac6 docs: add message property to compose-message component ()
PR Close 
2018-06-13 13:28:47 -07:00
Brandon Roberts
2278fe8f0e docs(aio): Upgrade examples to Angular 6 ()
PR Close 
2018-04-17 14:09:02 -07:00
Rafael
639d52fe71 refactor: ensure all 'TODO's are consistent ()
PR Close 
2018-04-13 13:11:01 -07:00
Igor Minar
b43f8bc7d3 feat(core): upgrade rxjs to 6.0.0-alpha.4 ()
PR Close 
2018-03-19 21:51:51 -07:00
Matias Niemelä
f5a98f41fe fix(core): remove core animation import symbols ()
This patch removes the deprecated support for animation
symbol imports from @angular/core.

BREAKING CHANGE: it is no longer possible to import
animation-related functions from @angular/core. All
animation symbols must now be imported from @angular/animations.

PR Close 
2018-03-14 12:23:51 -07:00
Jesus Rodriguez
1a75934cc0 build(aio): migrate plunker to stackblitz ()
PR Close 
2018-01-23 21:30:27 -08:00
Jesus Rodriguez
9bbf009dff build(aio): change examples to CLI ()
PR Close 
2017-09-21 17:05:54 -07:00
Brandon Roberts
53be85a7fb docs(aio): Updated usage of Observables in router guide. Added section for advanced redirects ()
PR Close 
2017-09-05 15:32:49 -05:00
Brandon Roberts
8d01db4638 docs: Updated router guide content and examples for paramMap
and queryParamMap, tracing, and incidental improvements.
closes  and  which it also fixes.
2017-06-29 09:35:39 -07:00
Peter Bacon Darwin
8a9a5ecdd7 docs(aio): move example specific styles into router example app.css file 2017-06-09 14:33:21 +01:00
Jesús Rodríguez
55b8de9fdd build(aio): lint examples 2017-05-03 13:44:41 -07:00
Filipe Silva
bfd5f27525 feat(aio): add e2e ()
PR Close 
2017-04-19 22:36:23 -05:00
Peter Bacon Darwin
fd72fad8fd docs(aio): update migrated content from anguar.io 2017-03-28 10:21:46 +01:00
Peter Bacon Darwin
1f3198cb50 feat(aio): copy example code from angular.io 2017-02-23 23:23:58 -08:00