File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/angular2/docs/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ Here is a trivial example of a tooltip decorator. The directive will log a toolt
6767 'text: tooltip' | - DOM element tooltip property should be
6868 ], | mapped to the directive text property.
6969 host: { | List which events need to be mapped.
70- '(mouseover)': 'show()' | - Invoke the show() method every time
70+ '(mouseover)': 'show()' | - Invoke the show() method every time
7171 } | the mouseover event is fired.
7272}) |
7373class Form { | Directive controller class, instantiated
7474 | when CSS matches.
7575 text:string; | text property on the Directive Controller.
7676 |
77- show(event ) { | Show method which implements the show action.
77+ show() { | Show method which implements the show action.
7878 console.log(this.text); |
7979 }
8080}
You can’t perform that action at this time.
0 commit comments