Skip to content

Instantly share code, notes, and snippets.

@armanozak
Last active May 9, 2019 08:24
Show Gist options
  • Save armanozak/bff170fadfe022715d8bf17c48b3d7c0 to your computer and use it in GitHub Desktop.
Save armanozak/bff170fadfe022715d8bf17c48b3d7c0 to your computer and use it in GitHub Desktop.
The Shell of an Abstract Component with Accessible Value #blog
import { ControlValueAccessor } from '@angular/forms';
import { Component } from '@angular/core';
@Component({ template: '' })
export class AbstractNgModelComponent<T = any> implements ControlValueAccessor {
/*
This is where boilerplate code for ControlValueAccessor
and any other reusable property or method will be placed
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment