"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cdk/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 { import {
Directive, Directive,
Inject,
InjectionToken,
Optional,
ViewContainerRef, ViewContainerRef,
} from '@angular/core'; } from '@angular/core';
/** /**
* Injection token used to provide a `CdkTreeNode` to its outlet.
* Used primarily to avoid circular imports.
* @docs-private
*/
export const CDK_TREE_NODE_OUTLET_NODE = new InjectionToken<{}>('CDK_TREE_NODE_O
UTLET_NODE');
/**
* Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place childr en dataNodes * Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place childr en dataNodes
* inside the outlet. * inside the outlet.
*/ */
@Directive({ @Directive({
selector: '[cdkTreeNodeOutlet]' selector: '[cdkTreeNodeOutlet]'
}) })
export class CdkTreeNodeOutlet { export class 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. 
1 lines changed or deleted 14 lines changed or added

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