selector property

  1. @override
String? get selector
override

A CSS selector denoting what elements should be embedded.

May be null if and only if decorator 'select' is defined, but no value is assigned. If 'select' is not defined at all (simple

Implementation

@override
String? get selector {
  // '<ng-content select>' ; no value was defined.
  // Return null to handle later.
  if (selectAttribute?.name != null && selectAttribute!.value == null) {
    return null;
  }
  return selectAttribute?.value ?? '*';
}