Page 1 of 1

moment.js support in Appery.io ionic projects?

Posted: Tue Jun 16, 2015 8:32 am
by Javier Ferreiro7559174

Hi all

Is moment.js included by default in Appery.io ionic projects? If so, can you provide an example of how to use it?
If not, is there any recommendation on the best approach to add it to an Appery.io ionic project(i.e. adding the angular-moment wrapper vs reference moment library on and defining our own moment.js based filters vs any other suggestion)

http://forum.ionicframework.com/t/tro...

BR
Javier


moment.js support in Appery.io ionic projects?

Posted: Tue Jun 16, 2015 3:59 pm
by Serhii Kulibaba

Hello Javier,

You can set it by yourself:
name: moment;
path: ../libs/ms_sdk_bundle/moment/moment.js

set it "global", "external"

Than define variable "moment" before it's usage:

var moment = require('moment');


moment.js support in Appery.io ionic projects?

Posted: Wed Jun 17, 2015 1:46 pm
by Javier Ferreiro7559174

Sergiy
Thank you for the tip, it works!
BR
Javier