Hi All,
In Ionic 2, how do you set up bower_components
? For example ngImgCrop is installed with:
bower install ngImgCrop
This sets up a bower_components
folder with the ngImgCrop libraries.
app
bower_components
----------------ng-img-crop
www
I can find documentation on how to add the dependencies to an Ionic 1 app:
<script src="angular.js"></script> <script src="ng-img-crop.js"></script> <link rel="stylesheet" type="text/css" href="ng-img-crop.css">
and
var myAppModule = angular.module('MyApp', ['ngImgCrop']);
Does anyone know how to configure this in an Ionic 2 app please? I think I need to add an import, but how does your import access the bower_components
as they are outside the www
folder, or should they be copied to a lib
folder inside the www
folder?
import { NgImgCrop } from '...';
Thanks