You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Directive({
selector: '[tooltip]', | CSS Selector which triggers the decorator
inputs: [ | List which properties need to be bound
'text: tooltip' | - DOM element tooltip property should be
], | mapped to the directive text property.
host: { | List which events need to be mapped.
(mouseover): 'show()' | - Invoke the show() method every time
} | the mouseover event is fired.
}) |
class Form { | Directive controller class, instantiated
| when CSS matches.
text:string; | text property on the Directive Controller.
|
show(event) { | Show method which implements the show action.
console.log(this.text); |
}
}
(mouseover): 'show()' should be '(mouseover)': 'show()'
The text was updated successfully, but these errors were encountered:
eg:
(mouseover): 'show()'
should be'(mouseover)': 'show()'
The text was updated successfully, but these errors were encountered: