fix(core): update ionic global property names

This commit is contained in:
Adam Bradley
2017-04-26 17:14:20 -05:00
parent 4954e38998
commit 0e9088b77d

View File

@ -22,17 +22,19 @@ export function setupCore(config: Config, plt: Platform, domCtrl: DomController,
} }
// same controllers are used by ionic core // same controllers are used by ionic core
ionic['configCtrl'] = config; ionic['ConfigCtrl'] = config;
// keep core and angular dom reads/writes *nsync // keep core and angular dom reads/writes *nsync
ionic['domCtrl'] = domCtrl; ionic['DomCtrl'] = domCtrl;
// keep core and angular dom reads/writes *nsync
ionic['eventNamePrefix'] = '$';
// next tick controller created here so that it can // next tick controller created here so that it can
// be created to run outside of angular // be created to run outside of angular
ionic['nextTickCtrl'] = getNextTickController(zone, plt.userAgent().toLowerCase()); ionic['NextTickCtrl'] = getNextTickController(zone, plt.userAgent().toLowerCase());
// keep core and angular dom reads/writes *nsync
ionic['eventNameFn'] = function(eventName: string) {
return '$' + eventName;
};
// build up a path for the exact ionic core javascript file this browser needs // build up a path for the exact ionic core javascript file this browser needs
var pathItems: string[] = ['core']; var pathItems: string[] = ['core'];