docs(aio): remove links to outdated live examples from the API documenation (#23966)

Closes #21525

PR Close #23966
This commit is contained in:
Brandon Roberts 2018-05-17 11:23:55 -05:00 committed by Miško Hevery
parent 0bd2d7bac6
commit 513f645894
10 changed files with 31 additions and 31 deletions

View File

@ -16,7 +16,7 @@ export abstract class ChangeDetectorRef {
*
* <!-- TODO: Add a link to a chapter on OnPush components -->
*
* ### Example ([live demo](https://stackblitz.com/edit/angular-kx7rrw))
* ### Example
*
* ```typescript
* @Component({
@ -131,7 +131,7 @@ export abstract class ChangeDetectorRef {
*
* <!-- 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
* its change detector from the main change detector tree when the component's live property

View File

@ -16,7 +16,7 @@
*
* `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:
*

View File

@ -44,7 +44,7 @@ export function forwardRef(forwardRefFn: ForwardRefFn): Type<any> {
*
* 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'}
*

View File

@ -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
* {@link Injector} does not have a {@link Provider} for the given key.
*
* ### Example ([live demo](http://plnkr.co/edit/vq8D3FRB9aGbnWJqtEPE?p=preview))
* ### Example
*
* ```typescript
* class A {
@ -90,7 +90,7 @@ export function noProviderError(injector: ReflectiveInjector, key: ReflectiveKey
/**
* Thrown when dependencies form a cycle.
*
* ### Example ([live demo](http://plnkr.co/edit/wYQdNos0Tzql3ei1EV9j?p=info))
* ### Example
*
* ```typescript
* var injector = Injector.resolveAndCreate([
@ -116,7 +116,7 @@ export function cyclicDependencyError(
* The `InstantiationError` class contains the original error plus the dependency graph which caused
* this object to be instantiated.
*
* ### Example ([live demo](http://plnkr.co/edit/7aWYdcqTQsP0eNqEdUAf?p=preview))
* ### Example
*
* ```typescript
* class A {
@ -149,7 +149,7 @@ export function instantiationError(
* Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}
* creation.
*
* ### Example ([live demo](http://plnkr.co/edit/YatCFbPAMCL0JSSQ4mvH?p=preview))
* ### Example
*
* ```typescript
* 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
* need to be injected into the constructor.
*
* ### Example ([live demo](http://plnkr.co/edit/rHnZtlNS7vJOPQ6pcVkm?p=preview))
* ### Example
*
* ```typescript
* class A {
@ -209,7 +209,7 @@ export function noAnnotationError(typeOrFunc: Type<any>| Function, params: any[]
/**
* Thrown when getting an object by index.
*
* ### Example ([live demo](http://plnkr.co/edit/bRs0SX2OTQiJzqvjgl8P?p=preview))
* ### Example
*
* ```typescript
* class A {}

View File

@ -26,7 +26,7 @@ const UNDEFINED = new Object();
* In typical use, application code asks for the dependencies in the constructor and they are
* 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`.
*
@ -58,7 +58,7 @@ export abstract class ReflectiveInjector implements Injector {
* A resolution is a process of flattening multiple nested arrays and converting individual
* providers into an array of {@link ResolvedReflectiveProvider}s.
*
* ### Example ([live demo](http://plnkr.co/edit/AiXTHi?p=preview))
* ### Example
*
* ```typescript
* @Injectable()
@ -95,7 +95,7 @@ export abstract class ReflectiveInjector implements Injector {
* The passed-in providers can be an array of `Type`, {@link Provider},
* or a recursive array of more providers.
*
* ### Example ([live demo](http://plnkr.co/edit/ePOccA?p=preview))
* ### Example
*
* ```typescript
* @Injectable()
@ -126,7 +126,7 @@ export abstract class ReflectiveInjector implements Injector {
*
* 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
* @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.
* -->
*
* ### Example ([live demo](http://plnkr.co/edit/eosMGo?p=preview))
* ### Example
*
* ```typescript
* 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},
* or a recursive array of more providers.
*
* ### Example ([live demo](http://plnkr.co/edit/opB3T4?p=preview))
* ### Example
*
* ```typescript
* 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.
*
* ### Example ([live demo](http://plnkr.co/edit/VhyfjN?p=preview))
* ### Example
*
* ```typescript
* class ParentProvider {}
@ -228,7 +228,7 @@ export abstract class ReflectiveInjector implements Injector {
*
* The created object does not get cached by the injector.
*
* ### Example ([live demo](http://plnkr.co/edit/yvVXoB?p=preview))
* ### Example
*
* ```typescript
* @Injectable()
@ -254,7 +254,7 @@ export abstract class ReflectiveInjector implements Injector {
*
* The created object does not get cached by the injector.
*
* ### Example ([live demo](http://plnkr.co/edit/ptCImQ?p=preview))
* ### Example
*
* ```typescript
* @Injectable()

View File

@ -42,7 +42,7 @@ const _EMPTY_LIST: any[] = [];
*
* It can be created manually, as follows:
*
* ### Example ([live demo](http://plnkr.co/edit/RfEnhh8kUEI0G3qsnIeT?p%3Dpreview&p=preview))
* ### Example
*
* ```typescript
* var resolvedProviders = Injector.resolve([{ provide: 'message', useValue: 'Hello' }]);

View File

@ -27,7 +27,7 @@ import {getSymbolIterator} from '../util';
*
* NOTE: In the future this class will implement an `Observable` interface.
*
* ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))
* ### Example
* ```typescript
* @Component({...})
* class Container {

View File

@ -124,7 +124,7 @@ export interface Directive {
*
* 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.
*
@ -169,7 +169,7 @@ export interface Directive {
* - `directiveProperty` specifies the component property that emits events.
* - `bindingProperty` specifies the DOM property the event handler is attached to.
*
* ### Example ([live demo](http://plnkr.co/edit/d5CNq7?p=preview))
* ### Example
*
* ```typescript
* @Directive({
@ -220,7 +220,7 @@ export interface Directive {
*
* 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
* counts clicks.
@ -254,7 +254,7 @@ export interface Directive {
* Angular automatically checks host property bindings during change detection.
* 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
* on the DOM element that has ngModel directive on it.

View File

@ -57,7 +57,7 @@ export class ViewRef<T> implements viewEngine_EmbeddedViewRef<T>, viewEngine_Int
*
* <!-- TODO: Add a link to a chapter on OnPush components -->
*
* ### Example ([live demo](https://stackblitz.com/edit/angular-kx7rrw))
* ### Example
*
* ```typescript
* @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 -->
*
* ### Example ([live demo](https://stackblitz.com/edit/angular-ymgsxw))
* ### Example
*
* 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

View File

@ -26,7 +26,7 @@ import {ResponseOptionsArgs} from './interfaces';
* This class may be used in tests to build {@link Response Responses} for
* mock responses (see {@link MockBackend}).
*
* ### Example ([live demo](http://plnkr.co/edit/P9Jkk8e8cz6NVzbcxEsD?p=preview))
* ### Example
*
* ```typescript
* 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,
* where certain properties may change from test to test.
*
* ### Example ([live demo](http://plnkr.co/edit/1lXquqFfgduTFBWjNoRE?p=preview))
* ### Example
*
* ```typescript
* 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
* used by {@link Http} to create {@link Response Responses}.
*
* ### Example ([live demo](http://plnkr.co/edit/qv8DLT?p=preview))
* ### Example
*
* ```typescript
* import {provide} from '@angular/core';
@ -142,7 +142,7 @@ export class ResponseOptions {
* The options could also be extended when manually creating a {@link Response}
* object.
*
* ### Example ([live demo](http://plnkr.co/edit/VngosOWiaExEtbstDoix?p=preview))
* ### Example
*
* ```
* import {BaseResponseOptions, Response} from '@angular/http';