UNPKG

ionic-framework

Version:

The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.

18 lines 573 B
/** * @private * Map of possible pages that can be navigated to using an Ionic NavController */ var NavRegistry = (function () { function NavRegistry(pages) { if (pages === void 0) { pages = []; } this._pages = new Map(pages.map(function (page) { return [page.name, page]; })); } NavRegistry.prototype.get = function (pageName) { return this._pages.get(pageName); }; NavRegistry.prototype.set = function (page) { this._pages.set(page.name, page); }; return NavRegistry; })(); exports.NavRegistry = NavRegistry;