docs(aio): remove links to outdated live examples from the API documenation (#23966)
Closes #21525 PR Close #23966
This commit is contained in:

committed by
Miško Hevery

parent
0bd2d7bac6
commit
513f645894
@ -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'}
|
||||
*
|
||||
|
@ -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 {}
|
||||
|
@ -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()
|
||||
|
@ -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' }]);
|
||||
|
Reference in New Issue
Block a user