/** * @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, Input, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {TreeNode, emptyTree} from '../util'; @Component({ selector: 'tree', template: ` {{data.value}} {{data.value}} ` }) export class TreeComponent { @Input() data: TreeNode = emptyTree; } @NgModule({ imports: [BrowserModule], bootstrap: [TreeComponent], declarations: [TreeComponent], }) export class AppModule { }