hunk.code_window: import { Component } from '@angular/core';
   @Component({
     moduleId: module.id,
  
hunk.labels: replace keep keep keep
hunk.after_edit: import { Component } from '@angular/core';<% if (isMobile) { %>
   import { APP_SHELL_DIRECTIVES } from '@angular/app-shell';<% } %>
  
hunk.file_path: addon/ng2/blueprints/ng2/files/__path__/app/__name__.component.ts
hunk.type: replace
file: const stringUtils = require('ember-cli-string-utils');
  var dynamicPathParser = require('../../utilities/dynamic-path-parser');
  var addBarrelRegistration = require('../../utilities/barrel-management');
  
  module.exports = {
    description: '',
  
    normalizeEntityName: function (entityName) {
      var parsedPath = dynamicPathParser(this.project, entityName);
  
      this.dynamicPath = parsedPath;
      return parsedPath.name;
    },
  
    locals: function (options) {
      this.fileName = stringUtils.dasherize(options.entity.name);
  
      return {
        dynamicPath: this.dynamicPath.dir,
        flat: options.flat,
        fileName: this.fileName
      };
    },
  
    fileMapTokens: function () {
      // Return custom template variables here.
      return {
        __path__: () => {
          this.generatePath = this.dynamicPath.dir;
          return this.generatePath;
        },
        __name__: () => {
          return this.fileName;
        }
      };
    },
  
    afterInstall: function() {
      return addBarrelRegistration(
        this,
        this.generatePath,
        this.fileName);
    }
  };
  