docs(aio): remove links to outdated live examples from the API documenation (#23966)
Closes #21525 PR Close #23966
This commit is contained in:
parent
0bd2d7bac6
commit
513f645894
|
@ -16,7 +16,7 @@ export abstract class ChangeDetectorRef {
|
||||||
*
|
*
|
||||||
* <!-- TODO: Add a link to a chapter on OnPush components -->
|
* <!-- TODO: Add a link to a chapter on OnPush components -->
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](https://stackblitz.com/edit/angular-kx7rrw))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Component({
|
* @Component({
|
||||||
|
@ -131,7 +131,7 @@ export abstract class ChangeDetectorRef {
|
||||||
*
|
*
|
||||||
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](https://stackblitz.com/edit/angular-ymgsxw))
|
* ### Example
|
||||||
*
|
*
|
||||||
* The following example creates a component displaying `live` data. The component will detach
|
* The following example creates a component displaying `live` data. The component will detach
|
||||||
* its change detector from the main change detector tree when the component's live property
|
* its change detector from the main change detector tree when the component's live property
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* `value | pipeName[:arg0[:arg1...]]`
|
* `value | pipeName[:arg0[:arg1...]]`
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/f5oyIked9M2cKzvZNKHV?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* The `RepeatPipe` below repeats the value as many times as indicated by the first argument:
|
* The `RepeatPipe` below repeats the value as many times as indicated by the first argument:
|
||||||
*
|
*
|
||||||
|
|
|
@ -44,7 +44,7 @@ export function forwardRef(forwardRefFn: ForwardRefFn): Type<any> {
|
||||||
*
|
*
|
||||||
* Acts as the identity function when given a non-forward-ref value.
|
* Acts as the identity function when given a non-forward-ref value.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/GU72mJrk1fiodChcmiDR?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
|
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
|
||||||
*
|
*
|
||||||
|
|
|
@ -70,7 +70,7 @@ function addKey(this: InjectionError, injector: ReflectiveInjector, key: Reflect
|
||||||
* Thrown when trying to retrieve a dependency by key from {@link Injector}, but the
|
* Thrown when trying to retrieve a dependency by key from {@link Injector}, but the
|
||||||
* {@link Injector} does not have a {@link Provider} for the given key.
|
* {@link Injector} does not have a {@link Provider} for the given key.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/vq8D3FRB9aGbnWJqtEPE?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* class A {
|
* class A {
|
||||||
|
@ -90,7 +90,7 @@ export function noProviderError(injector: ReflectiveInjector, key: ReflectiveKey
|
||||||
/**
|
/**
|
||||||
* Thrown when dependencies form a cycle.
|
* Thrown when dependencies form a cycle.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/wYQdNos0Tzql3ei1EV9j?p=info))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* var injector = Injector.resolveAndCreate([
|
* var injector = Injector.resolveAndCreate([
|
||||||
|
@ -116,7 +116,7 @@ export function cyclicDependencyError(
|
||||||
* The `InstantiationError` class contains the original error plus the dependency graph which caused
|
* The `InstantiationError` class contains the original error plus the dependency graph which caused
|
||||||
* this object to be instantiated.
|
* this object to be instantiated.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/7aWYdcqTQsP0eNqEdUAf?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* class A {
|
* class A {
|
||||||
|
@ -149,7 +149,7 @@ export function instantiationError(
|
||||||
* Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}
|
* Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}
|
||||||
* creation.
|
* creation.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/YatCFbPAMCL0JSSQ4mvH?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* expect(() => Injector.resolveAndCreate(["not a type"])).toThrowError();
|
* expect(() => Injector.resolveAndCreate(["not a type"])).toThrowError();
|
||||||
|
@ -166,7 +166,7 @@ export function invalidProviderError(provider: any) {
|
||||||
* Lack of annotation information prevents the {@link Injector} from determining which dependencies
|
* Lack of annotation information prevents the {@link Injector} from determining which dependencies
|
||||||
* need to be injected into the constructor.
|
* need to be injected into the constructor.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/rHnZtlNS7vJOPQ6pcVkm?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* class A {
|
* class A {
|
||||||
|
@ -209,7 +209,7 @@ export function noAnnotationError(typeOrFunc: Type<any>| Function, params: any[]
|
||||||
/**
|
/**
|
||||||
* Thrown when getting an object by index.
|
* Thrown when getting an object by index.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/bRs0SX2OTQiJzqvjgl8P?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* class A {}
|
* class A {}
|
||||||
|
|
|
@ -26,7 +26,7 @@ const UNDEFINED = new Object();
|
||||||
* In typical use, application code asks for the dependencies in the constructor and they are
|
* In typical use, application code asks for the dependencies in the constructor and they are
|
||||||
* resolved by the `Injector`.
|
* resolved by the `Injector`.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/jzjec0?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* The following example creates an `Injector` configured to create `Engine` and `Car`.
|
* The following example creates an `Injector` configured to create `Engine` and `Car`.
|
||||||
*
|
*
|
||||||
|
@ -58,7 +58,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
* A resolution is a process of flattening multiple nested arrays and converting individual
|
* A resolution is a process of flattening multiple nested arrays and converting individual
|
||||||
* providers into an array of {@link ResolvedReflectiveProvider}s.
|
* providers into an array of {@link ResolvedReflectiveProvider}s.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/AiXTHi?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Injectable()
|
* @Injectable()
|
||||||
|
@ -95,7 +95,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
* The passed-in providers can be an array of `Type`, {@link Provider},
|
* The passed-in providers can be an array of `Type`, {@link Provider},
|
||||||
* or a recursive array of more providers.
|
* or a recursive array of more providers.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/ePOccA?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Injectable()
|
* @Injectable()
|
||||||
|
@ -126,7 +126,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
*
|
*
|
||||||
* This API is the recommended way to construct injectors in performance-sensitive parts.
|
* This API is the recommended way to construct injectors in performance-sensitive parts.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/KrSMci?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Injectable()
|
* @Injectable()
|
||||||
|
@ -156,7 +156,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
* <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.
|
* <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.
|
||||||
* -->
|
* -->
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/eosMGo?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* var parent = ReflectiveInjector.resolveAndCreate([]);
|
* var parent = ReflectiveInjector.resolveAndCreate([]);
|
||||||
|
@ -175,7 +175,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
* The passed-in providers can be an array of `Type`, {@link Provider},
|
* The passed-in providers can be an array of `Type`, {@link Provider},
|
||||||
* or a recursive array of more providers.
|
* or a recursive array of more providers.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/opB3T4?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* class ParentProvider {}
|
* class ParentProvider {}
|
||||||
|
@ -204,7 +204,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
*
|
*
|
||||||
* This API is the recommended way to construct injectors in performance-sensitive parts.
|
* This API is the recommended way to construct injectors in performance-sensitive parts.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/VhyfjN?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* class ParentProvider {}
|
* class ParentProvider {}
|
||||||
|
@ -228,7 +228,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
*
|
*
|
||||||
* The created object does not get cached by the injector.
|
* The created object does not get cached by the injector.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/yvVXoB?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Injectable()
|
* @Injectable()
|
||||||
|
@ -254,7 +254,7 @@ export abstract class ReflectiveInjector implements Injector {
|
||||||
*
|
*
|
||||||
* The created object does not get cached by the injector.
|
* The created object does not get cached by the injector.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/ptCImQ?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Injectable()
|
* @Injectable()
|
||||||
|
|
|
@ -42,7 +42,7 @@ const _EMPTY_LIST: any[] = [];
|
||||||
*
|
*
|
||||||
* It can be created manually, as follows:
|
* It can be created manually, as follows:
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/RfEnhh8kUEI0G3qsnIeT?p%3Dpreview&p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* var resolvedProviders = Injector.resolve([{ provide: 'message', useValue: 'Hello' }]);
|
* var resolvedProviders = Injector.resolve([{ provide: 'message', useValue: 'Hello' }]);
|
||||||
|
|
|
@ -27,7 +27,7 @@ import {getSymbolIterator} from '../util';
|
||||||
*
|
*
|
||||||
* NOTE: In the future this class will implement an `Observable` interface.
|
* NOTE: In the future this class will implement an `Observable` interface.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))
|
* ### Example
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Component({...})
|
* @Component({...})
|
||||||
* class Container {
|
* class Container {
|
||||||
|
|
|
@ -124,7 +124,7 @@ export interface Directive {
|
||||||
*
|
*
|
||||||
* When `bindingProperty` is not provided, it is assumed to be equal to `directiveProperty`.
|
* When `bindingProperty` is not provided, it is assumed to be equal to `directiveProperty`.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/ivhfXY?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* The following example creates a component with two data-bound properties.
|
* The following example creates a component with two data-bound properties.
|
||||||
*
|
*
|
||||||
|
@ -169,7 +169,7 @@ export interface Directive {
|
||||||
* - `directiveProperty` specifies the component property that emits events.
|
* - `directiveProperty` specifies the component property that emits events.
|
||||||
* - `bindingProperty` specifies the DOM property the event handler is attached to.
|
* - `bindingProperty` specifies the DOM property the event handler is attached to.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/d5CNq7?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Directive({
|
* @Directive({
|
||||||
|
@ -220,7 +220,7 @@ export interface Directive {
|
||||||
*
|
*
|
||||||
* When writing a directive event binding, you can also refer to the $event local variable.
|
* When writing a directive event binding, you can also refer to the $event local variable.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/DlA5KU?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* The following example declares a directive that attaches a click listener to the button and
|
* The following example declares a directive that attaches a click listener to the button and
|
||||||
* counts clicks.
|
* counts clicks.
|
||||||
|
@ -254,7 +254,7 @@ export interface Directive {
|
||||||
* Angular automatically checks host property bindings during change detection.
|
* Angular automatically checks host property bindings during change detection.
|
||||||
* If a binding changes, it will update the host element of the directive.
|
* If a binding changes, it will update the host element of the directive.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/gNg0ED?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* The following example creates a directive that sets the `valid` and `invalid` classes
|
* The following example creates a directive that sets the `valid` and `invalid` classes
|
||||||
* on the DOM element that has ngModel directive on it.
|
* on the DOM element that has ngModel directive on it.
|
||||||
|
|
|
@ -57,7 +57,7 @@ export class ViewRef<T> implements viewEngine_EmbeddedViewRef<T>, viewEngine_Int
|
||||||
*
|
*
|
||||||
* <!-- TODO: Add a link to a chapter on OnPush components -->
|
* <!-- TODO: Add a link to a chapter on OnPush components -->
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](https://stackblitz.com/edit/angular-kx7rrw))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Component({
|
* @Component({
|
||||||
|
@ -142,7 +142,7 @@ export class ViewRef<T> implements viewEngine_EmbeddedViewRef<T>, viewEngine_Int
|
||||||
*
|
*
|
||||||
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](https://stackblitz.com/edit/angular-ymgsxw))
|
* ### Example
|
||||||
*
|
*
|
||||||
* The following example creates a component displaying `live` data. The component will detach
|
* The following example creates a component displaying `live` data. The component will detach
|
||||||
* its change detector from the main change detector tree when the component's live property
|
* its change detector from the main change detector tree when the component's live property
|
||||||
|
|
|
@ -26,7 +26,7 @@ import {ResponseOptionsArgs} from './interfaces';
|
||||||
* This class may be used in tests to build {@link Response Responses} for
|
* This class may be used in tests to build {@link Response Responses} for
|
||||||
* mock responses (see {@link MockBackend}).
|
* mock responses (see {@link MockBackend}).
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/P9Jkk8e8cz6NVzbcxEsD?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import {ResponseOptions, Response} from '@angular/http';
|
* import {ResponseOptions, Response} from '@angular/http';
|
||||||
|
@ -84,7 +84,7 @@ export class ResponseOptions {
|
||||||
* This may be useful when sharing a base `ResponseOptions` object inside tests,
|
* This may be useful when sharing a base `ResponseOptions` object inside tests,
|
||||||
* where certain properties may change from test to test.
|
* where certain properties may change from test to test.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/1lXquqFfgduTFBWjNoRE?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import {ResponseOptions, Response} from '@angular/http';
|
* import {ResponseOptions, Response} from '@angular/http';
|
||||||
|
@ -123,7 +123,7 @@ export class ResponseOptions {
|
||||||
* when configuring an {@link Injector}, in order to override the default options
|
* when configuring an {@link Injector}, in order to override the default options
|
||||||
* used by {@link Http} to create {@link Response Responses}.
|
* used by {@link Http} to create {@link Response Responses}.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/qv8DLT?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import {provide} from '@angular/core';
|
* import {provide} from '@angular/core';
|
||||||
|
@ -142,7 +142,7 @@ export class ResponseOptions {
|
||||||
* The options could also be extended when manually creating a {@link Response}
|
* The options could also be extended when manually creating a {@link Response}
|
||||||
* object.
|
* object.
|
||||||
*
|
*
|
||||||
* ### Example ([live demo](http://plnkr.co/edit/VngosOWiaExEtbstDoix?p=preview))
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* import {BaseResponseOptions, Response} from '@angular/http';
|
* import {BaseResponseOptions, Response} from '@angular/http';
|
||||||
|
|
Loading…
Reference in New Issue