Last active
May 9, 2019 08:24
-
-
Save armanozak/bff170fadfe022715d8bf17c48b3d7c0 to your computer and use it in GitHub Desktop.
The Shell of an Abstract Component with Accessible Value #blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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