hunk.code_window: import { Component, OnInit } from '@angular/core';
   @Component({
     selector: '<%= selector %>',<% if(inlineTemplate) { %>
     template: `
       <p>
  
hunk.labels: replace keep keep keep keep keep
hunk.after_edit: import { Component, OnInit<% if(viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection) { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';
  
hunk.file_path: packages/angular-cli/blueprints/component/files/__path__/__name__.component.ts
hunk.type: replace
file: const Task = require('ember-cli/lib/models/task');
  import * as chalk from 'chalk';
  import {exec} from 'child_process';
  
  
  export const E2eTask = Task.extend({
    run: function () {
      const ui = this.ui;
      let exitCode = 0;
  
      return new Promise((resolve) => {
        exec(`npm run e2e -- ${this.project.ngConfig.config.e2e.protractor.config}`,
          (err: NodeJS.ErrnoException, stdout: string, stderr: string) => {
            ui.writeLine(stdout);
            if (err) {
              ui.writeLine(stderr);
              ui.writeLine(chalk.red('Some end-to-end tests failed, see above.'));
              exitCode = 1;
            } else {
              ui.writeLine(chalk.green('All end-to-end tests pass.'));
            }
            resolve(exitCode);
          });
      });
    }
  });
  