File

C:/GoDev/src/TCSTK-Angular/projects/tibco-tcstk/tc-core-lib/src/lib/directives/on-create.directive.ts

Implements

OnInit

Metadata

Selector [tcOnCreate]

Index

Methods
Inputs
Outputs

Constructor

constructor()

Inputs

idx
Type : Number

Outputs

fireCreated
Type : EventEmitter

Methods

ngOnInit
ngOnInit()
Returns : void
import {Directive, EventEmitter, Input, OnInit, Output} from '@angular/core';

@Directive({
  selector: '[tcOnCreate]',
  exportAs: 'onCreate'
})
export class OnCreateDirective implements OnInit {
  @Input() idx: Number;
  @Output() fireCreated = new EventEmitter();

  constructor() {
  }

  ngOnInit(): void {
    this.fireCreated.emit();
  }

}

result-matching ""

    No results matching ""