Skip to content

Instantly share code, notes, and snippets.

@jsayol
Last active December 27, 2016 00:09
Show Gist options
  • Save jsayol/09806c93df0b0f4e9e1fc84aa45ed956 to your computer and use it in GitHub Desktop.
Save jsayol/09806c93df0b0f4e9e1fc84aa45ed956 to your computer and use it in GitHub Desktop.
@Directive({
selector: '[ngFor][ngForIn]'
})
export class NgForIn extends NgFor implements OnChanges {
@Input() ngForIn: any;
constructor(viewContainer: ViewContainerRef,
template: TemplateRef<NgForRow>,
differs: IterableDiffers,
cdr: ChangeDetectorRef) {
super(viewContainer, template, differs, cdr);
}
ngOnChanges(changes: SimpleChanges): void {
// Do something here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment