refactor(bazel): convert most ts_library to ng_module (#22176)

This is necessary so we can produce ng metadata for our packages that are published as libraries

PR Close #22176
This commit is contained in:
Alex Eagle
2018-02-13 08:19:33 -08:00
committed by Victor Berchet
parent 03d93c96a3
commit a069e08354
28 changed files with 56 additions and 50 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {Compiler, CompilerOptions, Component, ComponentFactory, Directive, Injector, NgModule, Pipe, Type} from '@angular/core';
import {Compiler, CompilerOptions, Component, ComponentFactory, Directive, Injectable, Injector, NgModule, Pipe, Type} from '@angular/core';
import {MetadataOverride} from './metadata_override';
@ -19,6 +19,7 @@ function unimplemented(): any {
*
* @experimental
*/
@Injectable()
export class TestingCompiler extends Compiler {
get injector(): Injector { throw unimplemented(); }
overrideModule(module: Type<any>, overrides: MetadataOverride<NgModule>): void {