Skip to content

Instantly share code, notes, and snippets.

@jcamilom
Created September 18, 2020 04:29
Show Gist options
  • Save jcamilom/06f54c03f4c57d520516b283e0c9efda to your computer and use it in GitHub Desktop.
Save jcamilom/06f54c03f4c57d520516b283e0c9efda to your computer and use it in GitHub Desktop.
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