I want to add a directive to an element from another directive by using the host property, but there doesn't seem to be a way to reference the other directive.
@Directive({
selector: '[one]',
host: { '[two]': '"some-value"' }
// How can I reference DirectiveTwo here?
})
export class DirectiveOne { }
@Directive({
selector: '[two]'
})
export class DirectiveTwo { }
When doing this, I get the standard "Can't bind to 'two' since it isn't a known native property" error.
What is the correct way of referencing and using one directive from another?