Javier Ferreiro7559174
Posts: 0
Joined: Thu May 28, 2015 10:38 pm

moment.js support in Appery.io ionic projects?

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

moment.js support in Appery.io ionic projects?

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');

Javier Ferreiro7559174
Posts: 0
Joined: Thu May 28, 2015 10:38 pm

moment.js support in Appery.io ionic projects?

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

Return to “Issues”