/** * @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 */ import {LowerCasePipe, NgIf} from '@angular/common'; import {ANALYZE_FOR_PRECOMPILE, AppModule, Component, ComponentFactoryResolver, Directive, Inject, Injectable, Input, OpaqueToken, Pipe} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; @Injectable() export class SomeService { public prop = 'someValue'; } @Injectable() export class NestedService { } @Directive({selector: '[someDir]', host: {'[title]': 'someDir'}}) export class SomeDirective { @Input() someDir: string; } @Pipe({name: 'somePipe'}) export class SomePipe { transform(value: string): any { return `transformed ${value}`; } } @Component({selector: 'cmp', template: `
`}) export class SomeComp { constructor() {} } @Component({selector: 'parent', template: `