fix: API 合并错误

fix: 暂时撤销对 HttpClient 的翻译,它的改动太大了
This commit is contained in:
Zhicheng WANG 2019-06-06 21:38:21 +08:00
parent 3e0ef413a8
commit b046dfdb6e
10 changed files with 37 additions and 575 deletions

File diff suppressed because it is too large Load Diff

View File

@ -32,6 +32,7 @@ export interface HttpParameterCodec {
* Use the `HttpParameterCodec` class to encode and decode the query-string values.
*
* `HttpParameterCodec`使 `encodeURIComponent` `decodeURIComponent` URL key value
* 使 `HttpParameterCodec`
*
* @publicApi
*/

View File

@ -145,7 +145,7 @@ export class Location {
* Given a string representing a URL, returns the URL path after stripping the
* trailing slashes.
*
* URL URL
* URL URL
*
* @param url String representing a URL.
*

View File

@ -22,6 +22,7 @@ import {ViewEncapsulation} from './view';
* Type of the Directive decorator / constructor function.
*
*
*
* @publicApi
*/
export interface DirectiveDecorator {
@ -780,7 +781,6 @@ export interface PipeDecorator {
* to a template. To make it a member of an NgModule,
* list it in the `declarations` field of the `NgModule` metadata.
*
* pipe
*/
(obj: Pipe): TypeDecorator;
@ -930,7 +930,7 @@ export interface OutputDecorator {
* The DOM property bound to the output property is automatically updated during change detection.
*
*
* Angular
* DOM Angular
*
* @usageNotes
*

View File

@ -57,7 +57,7 @@ export type ɵɵNgModuleDefWithMeta<T, Declarations, Imports, Exports> = NgModul
* never create the object directly since the shape of this object
* can change between versions.
*
* 使 `defineNgModule`
* 使 `ɵɵdefineNgModule`
*/
export interface NgModuleDef<T> {
/** Token representing the module. Used by DI.

View File

@ -198,10 +198,13 @@ export abstract class AbstractControl {
*
* * For an enabled `FormGroup`, the values of enabled controls as an object
* with a key-value pair for each member of the group.
*
* `FormGroup`
*
* * For a disabled `FormGroup`, the values of all controls as an object
* with a key-value pair for each member of the group.
*
* `FormGroup`
* `FormGroup`
*
* * For a `FormArray`, the values of enabled controls as an array.
*
@ -1874,7 +1877,7 @@ export class FormGroup extends AbstractControl {
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
* true.
*
* `onlySelf`: `true` `false`
* `onlySelf` `true` `false`
*
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges`
@ -2177,7 +2180,7 @@ export class FormGroup extends AbstractControl {
* the `FormArray` directly, as that result in strange and unexpected behavior such
* as broken change detection.
*
* 使 `FormArray` `push``insert` `removeAt`
* 使 `FormArray` `push``insert``removeAt` `clear`
* `FormArray` `AbstractControl`
*
* @publicApi

View File

@ -17,7 +17,7 @@ export {SecurityContext};
/**
* Marker interface for a value that's safe to use in a particular context.
*
*
* @publicApi
*
*/
export interface SafeValue {}
@ -25,7 +25,7 @@ export interface SafeValue {}
/**
* Marker interface for a value that's safe to use as HTML.
*
*
* @publicApi
* HTML
*/
export interface SafeHtml extends SafeValue {}
@ -33,7 +33,7 @@ export interface SafeHtml extends SafeValue {}
/**
* Marker interface for a value that's safe to use as style (CSS).
*
*
* @publicApi
* CSS
*/
export interface SafeStyle extends SafeValue {}
@ -41,7 +41,7 @@ export interface SafeStyle extends SafeValue {}
/**
* Marker interface for a value that's safe to use as JavaScript.
*
*
* @publicApi
* JavaScript
*/
export interface SafeScript extends SafeValue {}
@ -49,7 +49,7 @@ export interface SafeScript extends SafeValue {}
/**
* Marker interface for a value that's safe to use as a URL linking to a document.
*
*
* @publicApi
* URL
*/
export interface SafeUrl extends SafeValue {}
@ -57,7 +57,7 @@ export interface SafeUrl extends SafeValue {}
/**
* Marker interface for a value that's safe to use as a URL to load executable code from.
*
*
* @publicApi
* URL
*/
export interface SafeResourceUrl extends SafeValue {}

View File

@ -53,7 +53,6 @@ export type UrlMatchResult = {
* is not expressive enough.
*
* URL
*
* `path` `pathMatch` `Route.matcher` URL
*
* @param segments An array of URL segments.
@ -279,10 +278,12 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam
* Empty-path route configurations can be used to instantiate components that do not 'consume'
* any URL segments.
*
* "消费" url
*
* In the following configuration, when navigating to
* `/team/11`, the router instantiates the 'AllUsers' component.
*
* "消费" url
* `/team/11` 'AllUsers'
*
* ```
* [{
@ -304,8 +305,6 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam
*
* Note that an empty path route inherits its parent's parameters and data.
*
*
*
* ```
* [{
* path: 'team/:id',
@ -411,9 +410,6 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam
* It then extracts the set of routes defined in that NgModule,
* and transparently adds those routes to the main configuration.
*
*
* `loadChildren` `children`
*
* ```
* [{
* path: 'team/:id',

View File

@ -38,7 +38,7 @@ import {isUrlTree} from './utils/type_guards';
*
* Options that modify the navigation strategy.
*
*
*
* @publicApi
*/
export interface NavigationExtras {
@ -307,7 +307,7 @@ function defaultRouterHook(snapshot: RouterStateSnapshot, runExtras: {
*
* An NgModule that provides navigation and URL manipulation capabilities.
*
* URL
* URL NgModule
*
* @see `Route`.
* @see [Routing and Navigation Guide](guide/router).
@ -368,7 +368,7 @@ export class Router {
* True if at least one navigation event has occurred,
* false otherwise.
*
*
* True False
*/
navigated: boolean = false;
private lastSuccessfulId: number = -1;
@ -399,12 +399,17 @@ export class Router {
/**
* How to handle a navigation request to the current URL. One of:
*
* URL
*
* - `'ignore'` : The router ignores the request.
*
* `'ignore'`
*
* - `'reload'` : The router reloads the URL. Use to implement a "refresh" feature.
*
* URL
* "刷新"
* 使 URL 'ignore'
* `'reload'` URL"刷新"
*
*/
onSameUrlNavigation: 'reload'|'ignore' = 'ignore';
@ -412,17 +417,17 @@ export class Router {
* How to merge parameters, data, and resolved data from parent to child
* routes. One of:
*
*
*
*
* - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
* for path-less or component-less routes.
*
* `'emptyOnly'`
* `'emptyOnly'`
*
* - `'always'` : Inherit parent parameters, data, and resolved data
* for all child routes.
*
* `'always'`
* `'always'`
*
*/
paramsInheritanceStrategy: 'emptyOnly'|'always' = 'emptyOnly';
@ -1019,7 +1024,7 @@ export class Router {
/**
* Navigate based on the provided URL, which must be absolute.
*
* url 使
* URL 使
*
* @param url An absolute URL. The function does not apply any delta to the current URL.
*

View File

@ -465,7 +465,7 @@ export interface ExtraOptions {
* You can implement custom scroll restoration behavior by adapting the enabled behavior as
* follows:
*
*
*
*
* ```typescript
* class AppModule {
@ -619,7 +619,7 @@ export interface ExtraOptions {
* In other words, you're required to use `../` rather than `./`. This is currently the default
* behavior. Setting this option to `corrected` enables the fix.
*
* 使 `../` `./` v6 `legacy` v7
* 使 `../` `./` `corrected`
*/
relativeLinkResolution?: 'legacy'|'corrected';
}