NPM Angular Portlet
A portlet built with Angular, bundled via Liferay’s JS Toolkit.
- Leverage Angular’s ecosystem (e.g.,
@angular/material). - Integrate Angular apps into Liferay.
Implementation
Section titled “Implementation”Create the Portlet
Section titled “Create the Portlet”blade create -t npm-angular-portlet product-catalogBuild the Angular Component
Section titled “Build the Angular Component”import { Component } from "@angular/core";
@Component({ selector: "app-root", template: ` <h1>Product Catalog</h1> <ul> <li *ngFor="let product of products">{{ product.name }}</li> </ul> `,})export class AppComponent { products = [{ name: "Liferay DXP" }, { name: "Commerce" }];}Configure the Portlet
Section titled “Configure the Portlet”{ "systemjs": { "modules": { "product-catalog": "src/main/resources/META-INF/resources/app.js" } }}Use Cases
Section titled “Use Cases”- Admin Dashboards: Angular Material tables.
- Enterprise Apps: Migrate existing Angular apps to Liferay.