Skip to content

Angular Configuration

angelozerr edited this page Nov 7, 2015 · 5 revisions

Add Angular Nature

Cconvert your project to AngularJS Project :

Convert To AngularJS Project

Check tern

  • Tern Plugins
  • JSON Tern definitions

Check node.js is installed.

Customize Directives syntax

In HTML editor, directives completion provides directive names with the ng-* syntax :

HTMLAngularConfigureDirective1

Angular supports several syntax like starting with 'x-', 'data-' and use ':', '-', '_' delimiters. You can customize the syntax that you wish for completion with the project properties. By default you will see this configuration :

HTMLAngularConfigureDirective2

You can select other starts with and delimiters. You can see in the textarea the directive names that completion will show :

HTMLAngularConfigureDirective3

After validating your configuration, completion will show you directive names with other syntaxes :

HTMLAngularConfigureDirective3