Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created September 14, 2018 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetanelBasal/d171f3bd9a3ba32dcb2af81fba9836ee to your computer and use it in GitHub Desktop.
Save NetanelBasal/d171f3bd9a3ba32dcb2af81fba9836ee to your computer and use it in GitHub Desktop.
import { Directive, Input, TemplateRef } from '@angular/core';
@Directive({
selector: '[nbSelectOption]'
})
export class NbSelectOptionDirective {
option;
constructor( private tpl : TemplateRef<any> ) {}
@Input() set nbSelectOption( option ) {
this.option = option;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment