Listeners on Directives #22
-
Not sure if this is a bug or if I'm doing something wrong. Seems like https://codesandbox.io/s/angular-composition-api-bug-listener-directive-817m0 When the button is clicked their should be a console log |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Not sure if this is related, but I played around a little more and I realized, host bindings are not applied when used with directives. function setup() {
const id = use('test-id');
return {
id,
};
}
@Directive({
selector: '[appTest]',
host: { '[id]': 'id' },
})
export class TestDirective extends ViewDef(setup) {} The id |
Beta Was this translation helpful? Give feedback.
-
Looks like a bug, the directive isn't initialising properly. Please raise issues in the issues tab so they can be tracked. On a side note, the codesandbox example is needs |
Beta Was this translation helpful? Give feedback.
-
I've pushed a fix in 0.1303.0, if this does not resolve please reopen this ticket #23 |
Beta Was this translation helpful? Give feedback.
I've pushed a fix in 0.1303.0, if this does not resolve please reopen this ticket #23