"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/tree/outlet.ts" between
material2-7.3.4.tar.gz and material2-7.3.5.tar.gz

About: material2 offers Material Design components for Angular.

outlet.ts  (material2-7.3.4):outlet.ts  (material2-7.3.5)
/** /**
* @license * @license
* Copyright Google LLC All Rights Reserved. * Copyright Google LLC All Rights Reserved.
* *
* Use of this source code is governed by an MIT-style license that can be * 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 * found in the LICENSE file at https://angular.io/license
*/ */
import {CdkTreeNodeOutlet} from '@angular/cdk/tree'; import {CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodeOutlet} from '@angular/cdk/tree';
import { import {
Directive, Directive,
Inject,
Optional,
ViewContainerRef, ViewContainerRef,
} from '@angular/core'; } from '@angular/core';
/** /**
* Outlet for nested CdkNode. Put `[matTreeNodeOutlet]` on a tag to place childr en dataNodes * Outlet for nested CdkNode. Put `[matTreeNodeOutlet]` on a tag to place childr en dataNodes
* inside the outlet. * inside the outlet.
*/ */
@Directive({ @Directive({
selector: '[matTreeNodeOutlet]' selector: '[matTreeNodeOutlet]'
}) })
export class MatTreeNodeOutlet implements CdkTreeNodeOutlet { export class MatTreeNodeOutlet implements CdkTreeNodeOutlet {
constructor(public viewContainer: ViewContainerRef) {} constructor(
public viewContainer: ViewContainerRef,
@Inject(CDK_TREE_NODE_OUTLET_NODE) @Optional() public _node?: any) {}
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)