Created
September 18, 2020 04:29
-
-
Save jcamilom/06f54c03f4c57d520516b283e0c9efda to your computer and use it in GitHub Desktop.
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
abstract class MultiCheckOption { } // (1) | |
@Component({ | |
selector: 'simple-check-option', | |
providers: [ | |
{ // (2) | |
provide: MultiCheckOption, | |
useExisting: SimpleCheckOptionComponent, | |
} | |
] | |
}) | |
export class SimpleCheckOptionComponent { ... } | |
@Component({ | |
selector: 'user-check-option', | |
providers: [ | |
{ // (3) | |
provide: MultiCheckOption, | |
useExisting: UserCheckOptionComponent | |
} | |
] | |
}) | |
export class UserCheckOptionComponent { ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment