exportAs property

String? exportAs
final

A name that can be used in the template to assign this directive to a variable.

Example

@Directive(
  selector: 'child-dir',
  exportAs: 'child')
class ChildDir {}

@Component(
  selector: 'main',
  template: `<child-dir #c="child"></child-dir>`,
  directives: const [ChildDir])
class MainComponent {}

Implementation

final String? exportAs;