无法将模板文件用作Liferay角度portlet中组件的模板。相同的语法在普通角度应用程序中也可以正常工作。
app.component.ts
import { Component } from '@angular/core';
@Component({
templateUrl: './app.component.html'
/*
* I've tried to pass template file path as below but it wasn't worked
* templateUrl: './app.component.html'
* templateUrl: './app.component'
* templateUrl: 'app.component.html'
* templateUrl: 'app.component'
*/
})
export class AppComponent {}
app.component.html] >>
<h1>app component loaded using template file.</h1>
下面是我的环境详细信息
无法将模板文件用作Liferay角度portlet中组件的模板。相同的语法在普通角度应用程序中也可以正常工作。 app.component.ts import {组件} ...