PrimeFaces and Ultima is not defined

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
mgelinas
Posts: 1
Joined: 28 Oct 2016, 15:42

24 Nov 2016, 22:33

I'm trying to run Ultima for PrimeNG in an Angular 2 application (without JAVA).

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>
app.component.ts

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);
    }
}
Do I miss something?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

25 Nov 2016, 10:51

I think you bought a wrong product. We have two ultima version; PrimeFaces-Ultima(for JSF) and PrimeNg-Ultima(for Angular2). Please contact us; contact@primetek.com.tr

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests