Import Vimeo.js on Angular 2 with TypeScript

416 views
Skip to first unread message

Jorge Sanz Pérez

unread,
Aug 25, 2016, 12:24:52 PM8/25/16
to AngularJS
Hi, everyone!

I got stucked importing Vimeo.js library (https://github.com/vimeo/vimeo.js) in Angular 2 with TypeScript. What is equivalent to var Vimeo = require('vimeo').Vimeo; ?

Thank you so much! :-)

Zlatko Đurić

unread,
Aug 26, 2016, 3:18:35 AM8/26/16
to AngularJS
The equivalent of that would be "import { Vimeo } from 'vimeo';".

You might also need to tell your packager (Systemjs, we pack?) where it can find 'vimeo'.

Jorge Sanz Pérez

unread,
Aug 26, 2016, 1:27:52 PM8/26/16
to AngularJS
Cool! Thank you so much! I am trying it with editing my system.config.js! Let see if I get it! :-D
Reply all
Reply to author
Forward
0 new messages