/** * @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 {Component, EventEmitter, Input, NgModule, Output, forwardRef} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {UpgradeAdapter} from '@angular/upgrade'; declare var angular: any; var styles = [` .border { border: solid 2px DodgerBlue; } .title { background-color: LightSkyBlue; padding: .2em 1em; font-size: 1.2em; } .content { padding: 1em; } `]; var adapter = new UpgradeAdapter(forwardRef(() => Ng2AppModule)); var ng1module = angular.module('myExample', []); ng1module.controller('Index', function($scope: any /** TODO #9100 */) { $scope.name = 'World'; }); ng1module.directive('ng1User', function() { return { scope: {handle: '@', reset: '&'}, template: ` User: {{handle}}