Skip to content
Angelo edited this page Feb 10, 2014 · 19 revisions

Native Directive

Completions

Completion by name

Completion for directive name :

Completion for directive name

You can configure directives syntax in order to that completion shows you the well directive names (ng-, ng_, etc).

Completion by tags

Some directive supports only some HTML elements. For instance ngModel can be used only for 'inpu' HTML element. The completion shows ngModel only for 'input' element.

Completion by restrict

Angular defines 4 restricts :

  • A : the directive is available for attribute.
  • C : the directive is available for class attribute value.
  • E : the directive is available for element.
  • M : the directive is available for comment.

AngularJS Eclipse supports AE for the moment.

Hover

Hover for directive name

Custom Directive

Completions

Completion for custom directive name :

Completion for custom directive name

Hyperlink

Hyperlink for custom directive name :

Hyperlink for custom directive name