# All files / ngui-list/src ngui-list.directive.ts

100% Statements 6/6
66.67% Branches 6/9
100% Functions 2/2
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19

    2x

    3x

    3x

    1x
    2x
     import {
      Directive,
      ElementRef,
      EventEmitter,
      Output
    } from '@angular/core';

    @Directive({
      selector: 'ngui-list' // tslint:disable-line
    })
    export class NguiListDirective {
      /** Fired when child `<ngui-list-item>` is selected */
      @Output() selected: EventEmitter<any> = new EventEmitter();
      /** Fired when `ESC` key is pressed from `<ngui-list-item>` */
      @Output() escaped: EventEmitter<any> = new EventEmitter();

      constructor(public element: ElementRef) { }
    }