Moment.js doesn't get included in ionic


#1

I use this repo https://github.com/urish/angular-moment. I install momentjs by running npm install angular-moment moment --save. I can see in node_modules folder angular moment and moment are there.

I then follow the instruction include the js file like this

<script src="components/moment/moment.js"></script>
<script src="components/angular-moment/angular-moment.js"></script>

I also tried

<script src="lib/moment/moment.js"></script>


#2

only bower components are automatically installed in lib folder.

so add your libs as bower components in the bower.json:

bower install angular-moment --save
bower install moment --save

if you run bower install everything should be installed in www/lib/


#3

Hello with Ionic2 beta.7 to install moment you can do

npm install --save moment
typings install moment moment-node --ambient --save


#4

any source for this?


#5

where is the source of this? I want to learn more.