Jul 20, 2017 · 1 min read
**This is totally cheating people**, Angular has no support for descendant selector, you can check it in official documentation (https://angular.io/api/core/Directive#selector) or source code (https://github.com/angular/angular/blob/master/packages/compiler/src/selector.ts#L11-L21).
The example here seems to work only because that Angular only recognize the last part of your selector, namely being same effect as `selector: ‘input[type=”checkbox”]’`.
You could have a look of this pluner (http://plnkr.co/edit/yGFbqneL3E9KpleHuS3T?p=preview), here I changed the selector from `ngx-checkbox` to `ngx-checkbox-different` and it still has the same behavior.
