You can now write JavaScript that adheres to the new ECMAScript 2015 (ES2015) syntax, leverage ES2015 advanced features in your modules, and publish them. To do these things, you need make only minor adjustments to your JavaScript files and projects.

This section of tutorials shows how to prepare modules for ES2015 and use them in your portlets.

Preparing Your JavaScript Files for ES2015

To use the ES2015 syntax in a JavaScript file, add the extension .es to its name. For example, you rename file filename.js to The extension indicates it uses ES2015 syntax and must...

Read More

Using ES2015 Modules in your Portlet

Once you’ve exposed your modules via your package.json file, you can use them in your portlets. The aui:script tag’s require attribute makes it easy. This tutorial covers how to access in your...

Read More
0 (0 Votes)
Using JavaScript in Your Portlets Previous