Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import this in Angular5? #7

Open
MichaelLawrenceDee opened this issue Sep 6, 2018 · 1 comment
Open

How to import this in Angular5? #7

MichaelLawrenceDee opened this issue Sep 6, 2018 · 1 comment

Comments

@MichaelLawrenceDee
Copy link

MichaelLawrenceDee commented Sep 6, 2018

By using npm install, I obtained a ts file and a js file.
I tried using the following code in my ts file
import { calculateSize } from 'calculate-size';
but there is no exported module of such. How do I use this exactly? Size does not work either.

@misha130
Copy link

misha130 commented Oct 7, 2018

import calculateSize from 'calculate-size'
and then just use calculateSize('text', {});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants