11512 Commits

Author SHA1 Message Date
Pete Bacon Darwin
3808416479 build(docs-infra): remove legacy jsdoc tag processing ()
PR Close 
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
cf8ad24dcf docs(common): remove legacy @whatItDoes tag ()
PR Close 
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
cee7448efc build(docs-infra): add @nocollapse tag-def to prevent warning ()
See https://github.com/angular/angular/blob/master/packages/compiler-cli/src/transformers/nocollapse_hack.ts

PR Close 
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
7f1cace2a2 build(docs-infra): sort NgModule exports by id ()
PR Close 
2018-09-21 17:00:03 -07:00
Pete Bacon Darwin
56c86c7e79 build(docs-infra): sort package exports by id ()
Closes 

PR Close 
2018-09-21 17:00:03 -07:00
Matias Niemelä
82a14dc107 feat(ivy): provide groundwork for animations in core ()
PR Close 
2018-09-21 14:51:24 -07:00
Pete Bacon Darwin
a880686081 fix(docs-infra): ensure that only search is removed from URL on click ()
When we have navigated to the site via a URL that contains a search
query param, the site shows the search results.

We want to remove that query param from the URL when the search
results are closed, but the current implementation is also removing
other query params unnecessarily.

Now only the search param is removed when the search results are
closed.

See https://github.com/angular/angular/pull/25479/files#r219497804
for more context.

PR Close 
2018-09-21 10:29:24 -07:00
Pete Bacon Darwin
026b60cd70 build(docs-infra): expose deprecated status on items more clearly ()
PR Close 
2018-09-21 10:26:48 -07:00
Pete Bacon Darwin
cea2e0477c fix(docs-infra): render security risk labels ()
PR Close 
2018-09-21 10:26:48 -07:00
Pete Bacon Darwin
96f9f03d25 build(docs-infra): improve search quality ()
PR Close 
2018-09-21 10:26:48 -07:00
Pete Bacon Darwin
9931bd7576 build(docs-infra): do not include license comment in first API doc ()
The default dgeni config is to concatenate leading comments in front of API items.

In the case that you have an API item that starts a file with no import statements,
the license comment at the top of the file was being added to the front of the
API item's comment. SInce the license comment includes the `@license` tag
and the API item's comment did not start with `@description` the content of
the API item's comment was being put inside the `@license` tag, and no
description was being extracted from the API item's comment.

This commit updates to a version of dgeni-packages that has a switch to turn off
this concatenation, and then also configures this switch.

Closes 

PR Close 
2018-09-21 10:25:41 -07:00
sajeetharan
48094835bf docs: add Sajee to contributors ()
PR Close 
2018-09-21 10:24:15 -07:00
Charles Lyding
e42c1b0da8 ci: correct github robot size check configuration ()
PR Close 
2018-09-21 10:21:28 -07:00
Kara Erickson
e7ade38731 Revert "refactor(router): cleanup to navigation stream for readability" and associated changes ()
PR Close 
2018-09-21 10:15:43 -07:00
Kara Erickson
d5f47d6b71 refactor(ivy): special injection tokens should not be cached ()
PR Close 
2018-09-20 18:02:08 -07:00
Jason Aden
64aa6701f6 refactor(router): cleanup to navigation stream for readability and documentation ()
* Pull out `activateRoutes` into new operator
* Add `asyncTap` operator
* Use `asyncTap` operator for router hooks and remove corresponding abstracted operators
* Clean up formatting
* Minor performance improvements

PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
12ccf57340 refactor(router): update test based on router quick-cancelling ongoing navigations ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
c634176035 refactor(router): make sure redirect within NavigationStart event works ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
4bb10d224c refactor(router): move routing into a single Observable stream ()
This is a major refactor of how the router previously worked. There are a couple major advantages of this refactor, and future work will be built on top of it.

First, we will no longer have multiple navigations running at the same time. Previously, a new navigation wouldn't cause the old navigation to be cancelled and cleaned up. Instead, multiple navigations could be going at once, and we imperatively checked that we were operating on the most current `router.navigationId` as we progressed through the Observable streams. This had some major faults, the biggest of which was async races where an ongoing async action could result in a redirect once the async action completed, but there was no way to guarantee there weren't also other redirects that would be queued up by other async actions. After this refactor, there's a single Observable stream that will get cleaned up each time a new navigation is requested.

Additionally, the individual pieces of routing have been pulled out into their own operators. While this was needed in order to create one continuous stream, it also will allow future improvements to the testing APIs as things such as Guards or Resolvers should now be able to be tested in much more isolation.

* Add the new `router.transitions` observable of the new `NavigationTransition` type to contain the transition information
* Update `router.navigations` to pipe off of `router.transitions`
* Re-write navigation Observable flow to a single configured stream
* Refactor `switchMap` instead of the previous `mergeMap` to ensure new navigations cause a cancellation and cleanup of already running navigations
* Wire in existing error and cancellation logic so cancellation matches previous behavior

PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
5d689469f6 refactor(router): create pipeable afterPreactivation function ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
855ad8804e refactor(router): create pipeable resolveData function ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
29d3f3f6dd refactor(router): create pipeable checkGuards function ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
33101359c6 refactor(router): create pipeable setupPreactivation function ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
44eef5c343 refactor(router): create pipeable beforePreactivation function ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
68b7847b4c refactor(router): create pipeable applyRedirects function ()
PR Close 
2018-09-20 17:42:58 -07:00
Jason Aden
2b2e841e5b refactor(router): create pipeable recognize function ()
PR Close 
2018-09-20 17:42:58 -07:00
Alan Agius
549de1e21a fix(core): add missing peerDependency to @angular/compiler ()
In 919f42fea1 (diff-58563046c4439699f2e6a89187099a54) a dependency to the compiler was added. However the peerDependency was not added.
PR Close 
2018-09-20 10:53:25 -07:00
George Kalpakas
48e73c1558 ci: only run aio_preview job on PR builds ()
There can be no preview on non-PR builds, so there is no point in
running the job.

PR Close 
2018-09-20 09:32:44 -07:00
Judy Bogart
41ac58ab7d docs: copy-edit ()
PR Close 
2018-09-19 18:22:45 -07:00
Judy Bogart
f37cf52b4c docs: integrate material from cli wiki ()
PR Close 
2018-09-19 18:22:45 -07:00
Pete Bacon Darwin
927323f24e docs: add missing @ngModule tags ()
PR Close 
2018-09-19 16:18:24 -07:00
Pete Bacon Darwin
b94436d86c build(docs-infra): process and render ngmodule exports ()
All directives and pipes must now be tagged with one ore more
public NgModule, from which they are exported.

If an item is exported transitively via a re-exported internal NgModule
then it may be that the item appears to be exported from more than
one public NgModule. For example, there are shared directives that
are exported in this way from `FormsModule` and `ReactiveFormsModule`.

The doc-gen will error and fail if a directive or pipe is not tagged correctly.

NgModule pages now list all the directives and pipes that are exported from it.
Directive and Pipe pages now list any NgModule from which they are exported.
Packages also now list any NgModules that are contained - previously they were
missed.

PR Close 
2018-09-19 16:18:24 -07:00
Pete Bacon Darwin
bc5cb8153e build(docs-infra): separate NgModules from Classes in API docs ()
PR Close 
2018-09-19 16:18:24 -07:00
Pete Bacon Darwin
34b848ad51 build(docs-infra): remove unused info-bar API template ()
PR Close 
2018-09-19 16:18:24 -07:00
Alan Agius
d7e5bbf2d0 feat(compiler-cli): add support to extend angularCompilerOptions ()
`TypeScript` only supports merging and extending of `compilerOptions`. This is an implementation to support extending and inheriting of `angularCompilerOptions` from multiple files.

Closes: 

PR Close 
2018-09-19 16:17:28 -07:00
Brandon Roberts
a9a81f91cf docs(forms): update form apis based on review feedback ()
PR Close 
2018-09-19 16:09:00 -07:00
Brandon Roberts
07c10e2844 docs(forms): update API reference for forms interfaces and abstract classes ()
PR Close 
2018-09-19 16:09:00 -07:00
George Kalpakas
df5999a739 fix(docs-infra): configure Firebase to strip off the .html extension ()
Firebase used to do it automatically (with `cleanUrls: true`), but it
stopped doing it unless the resulting URL corresponds to an existing
file (which is not always the case in angular.io; e.g. the resulting URL
might be matched by a new redirect rule).
This change in Firebase hosting behavior resulted in some URLs not being
correctly redirected (e.g. URLs to the archived v2 site, or `.html`
suffixed URLs from 3rd-party sites).

This commit fixes it, by configuring Firebase hosting to strip off the
`.html` extension and redirect (if no other redirect rule matched).

PR Close 
2018-09-19 16:08:06 -07:00
Adam Plumer
3fb0da2de5 feat(platform-server): update domino to v2.1.0 ()
PR Close 
2018-09-19 16:07:36 -07:00
Sergej
8f0fcc3f71 feat(docs-infra): Add opensearch description ()
Enables Chrome users to search angular.io and its subdomains from the browsers navigation bar.
Not sure if compatible with Firefox yet.
The queried term in the URL is removed after closing the search-results.

PR Close 
2018-09-19 15:31:49 -07:00
Ben Lesh
ca1e56dc8b release: cut the v7.0.0-beta.6 release 2018-09-19 14:30:43 -07:00
Judy Bogart
d0e710d472 docs: copy edit ()
PR Close 
2018-09-19 10:43:06 -07:00
Judy Bogart
bc7f962039 docs: clean up formats, add detail ()
PR Close 
2018-09-19 10:43:06 -07:00
Judy Bogart
78d42a9503 docs: update view-related api doc ()
PR Close 
2018-09-19 10:43:06 -07:00
Judy Bogart
dd5e35ee67 docs: add ngmodule api doc ()
PR Close 
2018-09-19 10:40:58 -07:00
Vani
f91b0455c0 docs(animations): updated animation docs ()
PR Close 
2018-09-19 10:37:31 -07:00
Kapunahele Wong
e8bab1349f docs: delete extra sentence ()
PR Close 
2018-09-19 09:42:12 -07:00
Ben Lesh
e952c65759 docs: correct changelog for 6.1.7 2018-09-18 13:34:31 -07:00
Wei Huang
5241ea086d test(bazel): Run Angular test on RBE ()
PR Close 
2018-09-18 13:29:54 -07:00
Alex Eagle
cbbad1b791 refactor(ivy): pre-factor: set explicit type parameters for ModuleWithProviders ()
Ivy depends on having the generic type token later when reading the ModuleWithProviders from a .d.ts file.

PR Close 
2018-09-18 13:28:44 -07:00