Here is the errors I got:
Console errors:
PrimeFaces is not defined
Ultima is not defined
Here is my code:
index.html
Code: Select all
<head>
<link rel="stylesheet" href="/Shared/Vendor/primeng/resources/primeng.min.css">
<link rel="stylesheet" href="/Shared/Assets/Styles/layout-blue.css">
</head>
<body>
<app></app>
<script src="/Shared/Assets/Scripts/layout.js"></script>
<script src="/Shared/Assets/Scripts/nanoscroller.js"></script>
<script src="/Shared/Assets/Scripts/ripple.js"></script>
</body>
Code: Select all
import { Component, AfterViewInit, ElementRef } from '@angular/core';
declare var Ultima: any;
@Component({
moduleId: module.id,
selector: 'app',
templateUrl: 'app.component.html'
})
export class AppComponent implements AfterViewInit {
ngAfterViewInit() {
Ultima.init(this.el.nativeElement);
}
}