String exportAs
read-only

Defines the 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 {}