0

I am new to angular 2 and I would like to understand how I should install the paperjs library in my angular2 client. Should I just type npm install paper? This doesn't seem to include paperjs in my app. Should I just include it using the <script> tag? Please help me understand how I should approach this problem.

2

1 Answer 1

0

this question was answered before here I did the following to get it working:

npm install paper --save
npm install @types/paper --save

In systemjs.comfig.js add a map for paper

map:
    ...

    'paper': 'npm:paper/dist/paper-core.js'
},

In the component

import { PaperScope, Path, Point } from 'paper';

Note for Ionic2 users: You can skip the systemjs.config.js part.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.