import {Component, Directive, ElementRef, Injector, Input} from "@angular/core";
import {UpgradeComponent} from "@angular/upgrade/static";
import * as angular from 'angular';


/**
 * Angular 5 entry component for Import Template page.
 */
@Component({
    template: `
      <ng5-import-template [template]="template"></ng5-import-template>
    `
})
export class ImportTemplateComponent {

    @Input()
    template: any;
}

/**
 * Upgrades Import Template AngularJS entry component to Angular 5.
 */
@Directive({
    providers: [
        {provide: "$injector", useFactory: () => angular.element(document.body).injector()}
    ],
    selector: 'ng5-import-template'
})
export class ImportTemplateDirective extends UpgradeComponent {

    @Input()
    template: any;

    constructor(elementRef: ElementRef, injector: Injector) {
        super('importTemplateControllerEmbedded', elementRef, injector);
    }
}

import {Component, Directive, ElementRef, Injector, Input} from "@angular/core";
import {UpgradeComponent} from "@angular/upgrade/static";


/**
 * Angular 5 entry component for Import Template page.
 */
@Component({
    template: `
      <ng5-import-template [template]="template"></ng5-import-template>
    `
})
export class ImportTemplateComponent {

    @Input()
    template: any;
}

/**
 * Upgrades Import Template AngularJS entry component to Angular 5.
 */
@Directive({
    providers: [
        {provide: "$injector", useFactory: () => angular.element(document.body).injector()}
    ],
    selector: 'ng5-import-template'
})
export class ImportTemplateDirective extends UpgradeComponent {

    @Input()
    template: any;

    constructor(elementRef: ElementRef, injector: Injector) {
        super('importTemplateControllerEmbedded', elementRef, injector);
    }
}

Revert "Added missing import, fix build failure"
Revert "Added missing import, fix build failure"

This reverts commit 9e3cb4b4a1a79e297d34472c2ee2645c6dab8ff9.
