Encountering trouble using a template file as a template for the component in my Liferay angular portlet. It works fine with a regular Angular application.
app.component.ts
import { Component } from '@angular/core';
@Component({
templateUrl: './app.component.html'
/*
* I've attempted various ways to pass the template file path without success:
* 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>
Here are the details of my environment:
- OS : windows
- Liferay : liferay-ce-portal-tomcat-7.3.2-ga3
- node : v8.12.0
- angular/cli : ^1.6.7
- angular/compiler-cli : ^5.0.0
- liferay-npm-bundler : 2.18.2
- typescript : 2.4.2