Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

How to require('xyz') in ionic2/angular2?

$
0
0

@samfung wrote:

1) I read that ionic 2 is moving away from bower from one of the posts here. So all third-party libraries will be installed using npm. Once I have it npm installed, I assume I have to change something in webpack.config.js to make sure the library is included and packed by webpack. Is my assumption correct? I'm new to webpack.

2) Another question I have is that this Parse javascript sdk is using var Parse = require('parse') to load. How do I load that in ionic2/angular2, which has a different loading mechanism? I have searched a lot on this topic and I'm surprising I couldn't find anything that seemed to address this issue. Perhaps I didn't use proper search terms.

$ npm install parse --save

Thanks.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>