Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this file Annotations.md has a small mistake ! #119

Closed
Xiahl1990 opened this issue Jul 14, 2016 · 2 comments
Closed

this file Annotations.md has a small mistake ! #119

Xiahl1990 opened this issue Jul 14, 2016 · 2 comments

Comments

@Xiahl1990
Copy link

Xiahl1990 commented Jul 14, 2016

eg:

@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()'

@mgechev
Copy link
Collaborator

mgechev commented Jul 14, 2016

@Xiahl1990 would you open a PR with the suggested fix?

mgechev added a commit that referenced this issue Aug 13, 2016
@rolandjitsu
Copy link
Collaborator

Closed by 2295e40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants