UNPKG

angular-l10n

Version:

An Angular library to translate messages, dates and numbers

55 lines 1.44 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc */ import { Injectable, Injector } from '@angular/core'; /** * Allows to get the dependencies at the root level. */ var InjectorRef = /** @class */ (function () { function InjectorRef(injector) { this.injector = injector; /** * TranslationService instances. */ this.translations = []; InjectorRef.injector = this.injector; } /** * @template T * @param {?} token * @param {?=} notFoundValue * @return {?} */ InjectorRef.get = /** * @template T * @param {?} token * @param {?=} notFoundValue * @return {?} */ function (token, notFoundValue) { return InjectorRef.injector.get(token, notFoundValue); }; InjectorRef.injector = Injector.NULL; InjectorRef.decorators = [ { type: Injectable } ]; /** @nocollapse */ InjectorRef.ctorParameters = function () { return [ { type: Injector } ]; }; return InjectorRef; }()); export { InjectorRef }; if (false) { /** @type {?} */ InjectorRef.injector; /** * TranslationService instances. * @type {?} */ InjectorRef.prototype.translations; /** @type {?} */ InjectorRef.prototype.injector; } //# sourceMappingURL=injector-ref.js.map