/** * @license * Copyright Google LLC 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 {Directive, TemplateRef, Input} from '@angular/core'; /** * Element that will be used as a template for the preview * of a CdkDrag when it is being dragged. */ @Directive({ selector: 'ng-template[cdkDragPreview]' }) export class CdkDragPreview { /** Context data to be added to the preview template instance. */ @Input() data: T; constructor(public templateRef: TemplateRef) {} }