Commit Graph

14 Commits

Author SHA1 Message Date
George Kalpakas 23c36a24ed test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests ()
This commit disables the Selenium Promise Manager when running e2e tests
for docs examples in order to more closely align them with new apps
created with CLI v11. This change requires that any async operations in
tests are handled explicitly (e.g. using `async/await` or
`Promise#then()`).

PR Close 
2020-11-24 14:56:14 -08:00
George Kalpakas fc709423f2 refactor(docs-infra): fix docs examples for tslint rule `only-arrow-functions` ()
This commit updates the docs examples to be compatible with the
`only-arrow-functions` tslint rule.

This is in preparation of updating the docs examples `tslint.json` to
match the one generated for new Angular CLI apps in a future commit.

PR Close 
2020-07-31 11:00:06 -07:00
Santosh Yadav 209a365511 docs: add explanation for providedIn any ()
Angular 9 introduces a new value for providedIn called `any` which lets us use unique instance
for servicec in each lazy loaded module, this PR is to document the same

fixes 

PR Close 
2020-07-09 10:12:00 -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
George Kalpakas c9fd8e39f3 build(docs-infra): update project structure to cli@9 6/12 (`index.html`) ()
Update `index.html` (mostly remove empty line).

PR Close 
2020-03-18 10:00:01 -07:00
George Kalpakas fc325c49ec build(docs-infra): update project structure to cli@9 3/12 (`title in a h1 tag`) ()
Make test description less implementation specific.

PR Close 
2020-03-18 10:00:01 -07:00
George Kalpakas a8e936791b build(docs-infra): update project structure to cli@9 2/12 (`fixture.debugElement.componentInstance`) ()
`fixture.debugElement.componentInstance` --> `fixture.componentInstance`

PR Close 
2020-03-18 10:00:01 -07:00
George Kalpakas 21b8d6956a build(docs-infra): remove obsolete content from `example-config.json` files ()
The `build` and `run` properties in `example-config.json` are only used
in example projects of type `systemjs`. In CLI-type projects, `build`
and `run` are ignored.

PR Close 
2020-03-18 10:00:01 -07:00
Brandon Roberts 661a57d9e2 docs: update docs example dependencies to version 8 ()
PR Close 
2019-05-17 14:16:55 -07:00
Brandon Roberts 2278fe8f0e docs(aio): Upgrade examples to Angular 6 ()
PR Close 
2018-04-17 14:09:02 -07:00
Alex Rickabaugh e1ea7ed019 docs: update examples for tree-shakeable providers ()
PR Close 
2018-03-28 07:53:04 -07:00
George Kalpakas 15c2a93f14 build(aio): check for obsolete `plnkr.json` and missing `main` files ()
Also, remove `plnkr.json` for `service-worker-getting-started` guide,
since it is not used and ServiceWorker cannot work correctly in
plnkr/stackblitz anyway (e.g. no build step to re-compute hashes).
A zipper might be useful and can be added in a subsequent PR, but it is
currently broken (e.g. no dependency on `@angular/service-worker`).

PR Close 
2018-01-23 21:30:27 -08:00
George Kalpakas 44a4b1680f docs: improve/simplify example for `providers` guide ()
PR Close 
2018-01-18 18:22:20 -06:00
Kapunahele Wong 53f91189a1 docs(aio): add NgModule docs ()
PR Close 
2018-01-10 16:26:46 -08:00