/// 'use strict'; import {provide, IterableDiffers} from 'angular2/core'; import {defaultIterableDiffers} from 'angular2/src/core/change_detection/change_detection'; import {MongoCursorDifferFactory} from './mongo_cursor_differ'; /** * Gets the provider list that should be passed into angular for bootstrrapping * @returns {Array} * @private */ function _get_provider_list() { const providers = []; const factories = defaultIterableDiffers.factories; if (factories) { factories.push(new MongoCursorDifferFactory()); } providers.push(provide(IterableDiffers, { useValue: new IterableDiffers(factories) })); return providers; } export const MeteorProviders = _get_provider_list();