diff --git a/packages/common/src/location/platform_location.ts b/packages/common/src/location/platform_location.ts index 69c3ba25c7..0f5cb5f32e 100644 --- a/packages/common/src/location/platform_location.ts +++ b/packages/common/src/location/platform_location.ts @@ -14,22 +14,18 @@ import {InjectionToken} from '@angular/core'; * `PlatformLocation` encapsulates all calls to DOM apis, which allows the Router to be platform * agnostic. * This means that we can have different implementation of `PlatformLocation` for the different - * platforms - * that angular supports. For example, the default `PlatformLocation` is {@link - * BrowserPlatformLocation}, - * however when you run your app in a WebWorker you use {@link WebWorkerPlatformLocation}. + * platforms that angular supports. For example, `@angular/platform-browser` provides an + * implementation specific to the browser environment, while `@angular/platform-webworker` provides + * one suitable for use with web workers. * * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy} - * when - * they need to interact with the DOM apis like pushState, popState, etc... + * when they need to interact with the DOM apis like pushState, popState, etc... * * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly - * by - * the {@link Router} in order to navigate between routes. Since all interactions between {@link + * by the {@link Router} in order to navigate between routes. Since all interactions between {@link * Router} / * {@link Location} / {@link LocationStrategy} and DOM apis flow through the `PlatformLocation` - * class - * they are all platform independent. + * class they are all platform independent. * * @stable */ diff --git a/packages/core/src/application_ref.ts b/packages/core/src/application_ref.ts index 321125c864..2eaf016a68 100644 --- a/packages/core/src/application_ref.ts +++ b/packages/core/src/application_ref.ts @@ -162,8 +162,8 @@ export function getPlatform(): PlatformRef|null { * has exactly one platform, and services (such as reflection) which are common * to every Angular application running on the page are bound in its scope. * - * A page's platform is initialized implicitly when {@link bootstrap}() is called, or - * explicitly by calling {@link createPlatform}(). + * A page's platform is initialized implicitly when a platform is created via a platform factory + * (e.g. {@link platformBrowser}), or explicitly by calling the {@link createPlatform} function. * * @stable */ @@ -344,8 +344,6 @@ export class PlatformRef_ extends PlatformRef { /** * A reference to an Angular application running on a page. * - * For more about Angular applications, see the documentation for {@link bootstrap}. - * * @stable */ export abstract class ApplicationRef { diff --git a/packages/core/src/di/injector.ts b/packages/core/src/di/injector.ts index e9bfed142c..d640c81a08 100644 --- a/packages/core/src/di/injector.ts +++ b/packages/core/src/di/injector.ts @@ -50,7 +50,7 @@ export abstract class Injector { /** * Retrieves an instance from the injector based on the provided token. * If not found: - * - Throws {@link NoProviderError} if no `notFoundValue` that is not equal to + * - Throws an error if no `notFoundValue` that is not equal to * Injector.THROW_IF_NOT_FOUND is given * - Returns the `notFoundValue` otherwise */ diff --git a/packages/core/src/linker/compiler.ts b/packages/core/src/linker/compiler.ts index 501a1101ba..28320877b8 100644 --- a/packages/core/src/linker/compiler.ts +++ b/packages/core/src/linker/compiler.ts @@ -54,14 +54,14 @@ export class Compiler { compileModuleAsync(moduleType: Type): Promise> { throw _throwError(); } /** - * Same as {@link compileModuleSync} but also creates ComponentFactories for all components. + * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components. */ compileModuleAndAllComponentsSync(moduleType: Type): ModuleWithComponentFactories { throw _throwError(); } /** - * Same as {@link compileModuleAsync} but also creates ComponentFactories for all components. + * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components. */ compileModuleAndAllComponentsAsync(moduleType: Type): Promise> { diff --git a/packages/core/src/linker/query_list.ts b/packages/core/src/linker/query_list.ts index 86020d462e..9abd01b6fe 100644 --- a/packages/core/src/linker/query_list.ts +++ b/packages/core/src/linker/query_list.ts @@ -16,7 +16,8 @@ import {getSymbolIterator} from '../util'; * An unmodifiable list of items that Angular keeps up to date when the state * of the application changes. * - * The type of object that {@link Query} and {@link ViewQueryMetadata} provide. + * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList} + * provide. * * Implements an iterable interface, therefore it can be used in both ES6 * javascript `for (var i of items)` loops as well as in Angular templates with diff --git a/packages/core/src/metadata/di.ts b/packages/core/src/metadata/di.ts index 013d4568d1..86c7fcac25 100644 --- a/packages/core/src/metadata/di.ts +++ b/packages/core/src/metadata/di.ts @@ -287,7 +287,7 @@ export const ContentChild: ContentChildDecorator = makePropDecorator( /** * Type of the ViewChildren decorator / constructor function. * - * See {@ViewChildren}. + * See {@link ViewChildren}. * * @stable */ diff --git a/packages/core/src/metadata/directives.ts b/packages/core/src/metadata/directives.ts index 6f3218e283..646f7be8ec 100644 --- a/packages/core/src/metadata/directives.ts +++ b/packages/core/src/metadata/directives.ts @@ -662,8 +662,8 @@ export interface Component extends Directive { * encapsulation. * * When no `encapsulation` is defined for the component, the default value from the - * {@link CompilerConfig} is used. The default is `ViewEncapsulation.Emulated`}. Provide a new - * `CompilerConfig` to override this value. + * {@link CompilerOptions} is used. The default is `ViewEncapsulation.Emulated`}. Provide a new + * `CompilerOptions` to override this value. * * If the encapsulation is set to `ViewEncapsulation.Emulated` and the component has no `styles` * nor `styleUrls` the encapsulation will automatically be switched to `ViewEncapsulation.None`. diff --git a/packages/core/src/metadata/view.ts b/packages/core/src/metadata/view.ts index edfb6ccf13..b511a0e0f7 100644 --- a/packages/core/src/metadata/view.ts +++ b/packages/core/src/metadata/view.ts @@ -9,14 +9,14 @@ /** * Defines template and style encapsulation options available for Component's {@link Component}. * - * See {@link ViewMetadata#encapsulation}. + * See {@link Component#encapsulation}. * @stable */ export enum ViewEncapsulation { /** * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host * Element and pre-processing the style rules provided via - * {@link ViewMetadata#styles} or {@link ViewMetadata#stylesUrls}, and adding the new Host Element + * {@link Component#styles} or {@link Component#styleUrls}, and adding the new Host Element * attribute to all selectors. * * This is the default option. diff --git a/packages/core/src/zone/ng_zone.ts b/packages/core/src/zone/ng_zone.ts index a821c3f350..07b85c49e2 100644 --- a/packages/core/src/zone/ng_zone.ts +++ b/packages/core/src/zone/ng_zone.ts @@ -13,8 +13,8 @@ import {EventEmitter} from '../event_emitter'; * * The most common use of this service is to optimize performance when starting a work consisting of * one or more asynchronous tasks that don't require UI updates or error handling to be handled by - * Angular. Such tasks can be kicked off via {@link runOutsideAngular} and if needed, these tasks - * can reenter the Angular zone via {@link run}. + * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks + * can reenter the Angular zone via {@link #run}. * *