
A class that is provided as Angular service is required to have an `@Injectable()` decorator so that the compiler generates its injectable definition for the runtime. Applications are automatically migrated using the "missing-injectable" schematic, however libraries built for older version of Angular may not yet satisfy this requirement. This commit ports the "missing-injectable" schematic to a migration that is ran when ngcc is processing a library. This ensures that any service that is provided from an NgModule or Directive/Component will have an `@Injectable()` decorator. PR Close #33362
20 lines
753 B
TypeScript
20 lines
753 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
/// <reference types="node" />
|
|
|
|
export {ResourceLoader} from './src/api';
|
|
export {BaseDefDecoratorHandler} from './src/base_def';
|
|
export {ComponentDecoratorHandler} from './src/component';
|
|
export {DirectiveDecoratorHandler} from './src/directive';
|
|
export {InjectableDecoratorHandler} from './src/injectable';
|
|
export {NgModuleDecoratorHandler} from './src/ng_module';
|
|
export {PipeDecoratorHandler} from './src/pipe';
|
|
export {NoopReferencesRegistry, ReferencesRegistry} from './src/references_registry';
|
|
export {forwardRefResolver} from './src/util';
|