AngularJS in MyEclipse
Support for AngularJS was introduced in MyEclipse 2015 CI 7. Read on to see what features are included.
1. AngularJS Support
Initial MyEclipse support for AngularJS is available in MyEclipse 2015 CI 7. Subsequent releases will offer even more AngularJS integration. Currently, support includes the following features:
- Code-assist
- Syntax checking
- Validation
- AngularJS Explorer view
- Editor preferences
As an alternative, you can open the project’s properties page, expand MyEclipse and select JavaScript Resources. Select the angular option on the Technologies tab.
After selecting the AngularJS technology for a project, simply add the appropriate AngularJS libraries to your project and you are all set.
2. Code Assist
The default directives syntax prepends “ng-” to directive names. In the HTML editor, content assist provides directive names.
You can change your preference for directive name syntax. The code completion will reflect your preference settings.
Module content assist is also available in the HTML editor.
In the JavaScript editor, code completion is available for the angular module.
3. Validation
Validation for AngularJS is available for Angular syntax. The validator is an extension of the HTML syntax validator. Therefore, to avoid HTML warnings on AngularJS syntax, enable the HTML Angular Syntax Validator and disable the HTML Syntax Validator.
The same goes for the JSP Content Validator. To avoid Angular syntax warnings when using JSP, disable the JSP Content Validator when you enable the JSP Angular Content Validator.
4. Angular Explorer View
View and navigate AngularJS elements using the Angular Explorer view. Open the view by selecting Window>Show View>Other, expanding AngularJS, and choosing Angular Explorer.
|
5. General Preferences
When no project is selected, you can set syntax coloring preferences specific to AngularJS, as well as specify if you want to automatically close AngularJS expressions when editing.