Wojciech Syski 5 Years Ago Does Liferay NPM bundler work with Angular 6? Please sign in to reply. Reply as... Cancel
Rt Jar 5 Years Ago Can you please post an integration with react-table or react-admin. Please sign in to reply. Reply as... Cancel
Rich Rein 4 Years Ago I follow the logistics of all of this - but where do the artifacts end up? I am guessing that "npm-angular5-portlet-say-hello" ends up as a portlet/widget on a page? How does "npm-angular5-provider" fit into the mix - Is it part of the theme? Loaded into the corner of every page where you need it (as a portlet that takes up no space? Simply available for consumption because it was deployed to an instance? Please sign in to reply. Reply as... Cancel Ivan Zaera Rich Rein 4 Years Ago @Rich As you say "npm-angular5-portlet-say-hello" ends up as a portlet/widget on a page. Regarding "npm-angular5-provider" it simply provides some JS packages that are registered with the NPMRegistry, so that whoever requires them (with Liferay.Loader.require()) can get access. So it's not a portlet but a simply OSGi bundle with no services/components at all but only JavaScript resources (the packages) to be shared among other frontend parts of the portal. You can see https://github.com/izaera/liferay-js-toolkit-showcase/tree/reactfor a more complex example with a total of three providers and two portlets that share the JavaScript in them. Please sign in to reply. Reply as... Cancel
Ivan Zaera Rich Rein 4 Years Ago @Rich As you say "npm-angular5-portlet-say-hello" ends up as a portlet/widget on a page. Regarding "npm-angular5-provider" it simply provides some JS packages that are registered with the NPMRegistry, so that whoever requires them (with Liferay.Loader.require()) can get access. So it's not a portlet but a simply OSGi bundle with no services/components at all but only JavaScript resources (the packages) to be shared among other frontend parts of the portal. You can see https://github.com/izaera/liferay-js-toolkit-showcase/tree/reactfor a more complex example with a total of three providers and two portlets that share the JavaScript in them. Please sign in to reply. Reply as... Cancel
Andrew Jardine 4 Years Ago Great series Ivan and not boring at all. Or at least not any more boring than any other post related to source code :). Thanks again for the detailed explanation. Please sign in to reply. Reply as... Cancel