Forum How do I...?

Is there a angular version compatible with Prince?

zzal
Hello!

I'm testing your product, prior to purchasing a commercial license.

I'm simply trying to load the angular lib. but I always end up with this error:

prince: https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js:159: error: TypeError: undefined value is not an object


Is there a angularJS version compatible with Prince?



P.S.: I use this to to load the library:

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
mikeday
This is an issue caused by some missing JavaScript DOM properties. We can fix this, after which the library will load without errors, but I don't know if there are other problems once it is actually called. Do you happen to have a simple sample document using AngularJS that we could test with?
zzal
Hi,

I'm just started creating this page in my existing project:

<!DOCTYPE html>
<html class="no-js">
    <head>
        <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700,400italic,900)">
        <link rel="stylesheet" type="text/css" href="/assets/dashboard-print.css">
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
    </body>
</html>


Simple as that.

I've tried several angular versions without success.
mikeday
This document will work with the updated Prince build, we will release it later this week.
mikeday
The latest build is now available and should fix at least some of the issues experienced with AngularJS. :)