diff --git a/packages/core/src/change_detection/change_detector_ref.ts b/packages/core/src/change_detection/change_detector_ref.ts index 89f5244de4..743f5f66ae 100644 --- a/packages/core/src/change_detection/change_detector_ref.ts +++ b/packages/core/src/change_detection/change_detector_ref.ts @@ -16,7 +16,7 @@ export abstract class ChangeDetectorRef { * * * - * ### Example ([live demo](https://stackblitz.com/edit/angular-kx7rrw)) + * ### Example * * ```typescript * @Component({ @@ -131,7 +131,7 @@ export abstract class ChangeDetectorRef { * * * - * ### 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 diff --git a/packages/core/src/change_detection/pipe_transform.ts b/packages/core/src/change_detection/pipe_transform.ts index 4e6d120931..e835d7f610 100644 --- a/packages/core/src/change_detection/pipe_transform.ts +++ b/packages/core/src/change_detection/pipe_transform.ts @@ -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: * diff --git a/packages/core/src/di/forward_ref.ts b/packages/core/src/di/forward_ref.ts index 8800543923..6837df128c 100644 --- a/packages/core/src/di/forward_ref.ts +++ b/packages/core/src/di/forward_ref.ts @@ -44,7 +44,7 @@ export function forwardRef(forwardRefFn: ForwardRefFn): Type { * * 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'} * diff --git a/packages/core/src/di/reflective_errors.ts b/packages/core/src/di/reflective_errors.ts index 51f223c383..7351ebb99a 100644 --- a/packages/core/src/di/reflective_errors.ts +++ b/packages/core/src/di/reflective_errors.ts @@ -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| Function, params: any[] /** * Thrown when getting an object by index. * - * ### Example ([live demo](http://plnkr.co/edit/bRs0SX2OTQiJzqvjgl8P?p=preview)) + * ### Example * * ```typescript * class A {} diff --git a/packages/core/src/di/reflective_injector.ts b/packages/core/src/di/reflective_injector.ts index 3de3d6184a..d7784cb38e 100644 --- a/packages/core/src/di/reflective_injector.ts +++ b/packages/core/src/di/reflective_injector.ts @@ -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 { * * - * ### 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() diff --git a/packages/core/src/di/reflective_provider.ts b/packages/core/src/di/reflective_provider.ts index 1def0e83c0..f66bc9a02e 100644 --- a/packages/core/src/di/reflective_provider.ts +++ b/packages/core/src/di/reflective_provider.ts @@ -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' }]); diff --git a/packages/core/src/linker/query_list.ts b/packages/core/src/linker/query_list.ts index 3d7739a471..dc72fd1588 100644 --- a/packages/core/src/linker/query_list.ts +++ b/packages/core/src/linker/query_list.ts @@ -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 { diff --git a/packages/core/src/metadata/directives.ts b/packages/core/src/metadata/directives.ts index 145f5ed18f..330715510b 100644 --- a/packages/core/src/metadata/directives.ts +++ b/packages/core/src/metadata/directives.ts @@ -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. diff --git a/packages/core/src/render3/view_ref.ts b/packages/core/src/render3/view_ref.ts index 44b7682927..80d4b29a6f 100644 --- a/packages/core/src/render3/view_ref.ts +++ b/packages/core/src/render3/view_ref.ts @@ -42,7 +42,7 @@ export class ViewRef implements viewEngine_EmbeddedViewRef { * * * - * ### Example ([live demo](https://stackblitz.com/edit/angular-kx7rrw)) + * ### Example * * ```typescript * @Component({ @@ -127,7 +127,7 @@ export class ViewRef implements viewEngine_EmbeddedViewRef { * * * - * ### 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 diff --git a/packages/http/src/base_response_options.ts b/packages/http/src/base_response_options.ts index b39c456ae3..6c82cb62d7 100644 --- a/packages/http/src/base_response_options.ts +++ b/packages/http/src/base_response_options.ts @@ -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';