UNPKG

30.8 kBJavaScriptView Raw
1(function (factory) {
2 if (typeof module === "object" && typeof module.exports === "object") {
3 var v = factory(require, exports);
4 if (v !== undefined) module.exports = v;
5 }
6 else if (typeof define === "function" && define.amd) {
7 define(["require", "exports", "@angular/core", "@angular/common", "@angular/platform-browser", "@angular/forms", "@angular/common", "./components/app/app", "./components/app/app-root", "./config/config", "./navigation/deep-linker", "./platform/dom-controller", "./util/events", "./util/form", "./gestures/gesture-controller", "./gestures/gesture-config", "./tap-click/haptic", "./platform/keyboard", "./util/module-loader", "./util/ng-module-loader", "./platform/platform", "./platform/platform-registry", "./tap-click/tap-click", "./config/mode-registry", "./transitions/transition-controller", "./navigation/url-serializer", "./components/action-sheet/action-sheet-component", "./components/action-sheet/action-sheet-controller", "./components/alert/alert-component", "./components/alert/alert-controller", "./components/app/click-block", "./components/app/app-root", "./components/app/overlay-portal", "./components/avatar/avatar", "./components/backdrop/backdrop", "./components/badge/badge", "./components/button/button", "./components/card/card", "./components/card/card-content", "./components/card/card-header", "./components/card/card-title", "./components/checkbox/checkbox", "./components/chip/chip", "./components/content/content", "./components/datetime/datetime", "./components/fab/fab", "./components/fab/fab-container", "./components/fab/fab-list", "./components/grid/col", "./components/grid/grid", "./components/grid/row", "./components/icon/icon", "./components/img/img", "./components/infinite-scroll/infinite-scroll", "./components/infinite-scroll/infinite-scroll-content", "./components/input/input", "./components/item/item", "./components/item/item-content", "./components/item/item-divider", "./components/item/item-group", "./components/item/item-options", "./components/item/item-reorder", "./components/item/item-sliding", "./components/item/reorder", "./components/label/label", "./components/list/list", "./components/list/list-header", "./components/loading/loading-component", "./components/loading/loading-controller", "./components/menu/menu", "./components/menu/menu-close", "./components/app/menu-controller", "./components/menu/menu-toggle", "./components/modal/modal-component", "./components/modal/modal-controller", "./components/nav/nav", "./components/nav/nav-pop", "./components/nav/nav-pop-anchor", "./components/nav/nav-push", "./components/nav/nav-push-anchor", "./components/note/note", "./components/option/option", "./components/picker/picker-component", "./components/picker/picker-column", "./components/picker/picker-controller", "./components/popover/popover-component", "./components/popover/popover-controller", "./components/radio/radio-button", "./components/radio/radio-group", "./components/range/range", "./components/range/range-knob", "./components/refresher/refresher", "./components/refresher/refresher-content", "./components/scroll/scroll", "./components/searchbar/searchbar", "./components/segment/segment", "./components/select/select", "./components/select/select-popover-component", "./components/segment/segment-button", "./components/show-hide-when/show-when", "./components/show-hide-when/hide-when", "./components/slides/slide", "./components/slides/slides", "./components/spinner/spinner", "./components/split-pane/split-pane", "./components/tabs/tab", "./components/tabs/tab-button", "./components/tabs/tab-highlight", "./components/tabs/tabs", "./components/thumbnail/thumbnail", "./components/toast/toast-component", "./components/toast/toast-controller", "./components/toggle/toggle", "./components/toolbar/toolbar-footer", "./components/toolbar/toolbar-header", "./components/toolbar/toolbar", "./components/toolbar/toolbar-item", "./components/toolbar/toolbar-title", "./components/toolbar/navbar", "./components/typography/typography", "./components/virtual-scroll/virtual-footer", "./components/virtual-scroll/virtual-header", "./components/virtual-scroll/virtual-item", "./components/virtual-scroll/virtual-scroll"], factory);
8 }
9})(function (require, exports) {
10 "use strict";
11 Object.defineProperty(exports, "__esModule", { value: true });
12 /**
13 * Import Angular
14 */
15 var core_1 = require("@angular/core");
16 var common_1 = require("@angular/common");
17 var platform_browser_1 = require("@angular/platform-browser");
18 var forms_1 = require("@angular/forms");
19 var common_2 = require("@angular/common");
20 /**
21 * Global Providers
22 */
23 var app_1 = require("./components/app/app");
24 var app_root_1 = require("./components/app/app-root");
25 var config_1 = require("./config/config");
26 var deep_linker_1 = require("./navigation/deep-linker");
27 var dom_controller_1 = require("./platform/dom-controller");
28 var events_1 = require("./util/events");
29 var form_1 = require("./util/form");
30 var gesture_controller_1 = require("./gestures/gesture-controller");
31 var gesture_config_1 = require("./gestures/gesture-config");
32 var haptic_1 = require("./tap-click/haptic");
33 var keyboard_1 = require("./platform/keyboard");
34 var module_loader_1 = require("./util/module-loader");
35 var ng_module_loader_1 = require("./util/ng-module-loader");
36 var platform_1 = require("./platform/platform");
37 var platform_registry_1 = require("./platform/platform-registry");
38 var tap_click_1 = require("./tap-click/tap-click");
39 var mode_registry_1 = require("./config/mode-registry");
40 var transition_controller_1 = require("./transitions/transition-controller");
41 var url_serializer_1 = require("./navigation/url-serializer");
42 /**
43 * Import Components/Directives/Etc
44 */
45 var action_sheet_component_1 = require("./components/action-sheet/action-sheet-component");
46 var action_sheet_controller_1 = require("./components/action-sheet/action-sheet-controller");
47 var alert_component_1 = require("./components/alert/alert-component");
48 var alert_controller_1 = require("./components/alert/alert-controller");
49 var click_block_1 = require("./components/app/click-block");
50 var app_root_2 = require("./components/app/app-root");
51 var overlay_portal_1 = require("./components/app/overlay-portal");
52 var avatar_1 = require("./components/avatar/avatar");
53 var backdrop_1 = require("./components/backdrop/backdrop");
54 var badge_1 = require("./components/badge/badge");
55 var button_1 = require("./components/button/button");
56 var card_1 = require("./components/card/card");
57 var card_content_1 = require("./components/card/card-content");
58 var card_header_1 = require("./components/card/card-header");
59 var card_title_1 = require("./components/card/card-title");
60 var checkbox_1 = require("./components/checkbox/checkbox");
61 var chip_1 = require("./components/chip/chip");
62 var content_1 = require("./components/content/content");
63 var datetime_1 = require("./components/datetime/datetime");
64 var fab_1 = require("./components/fab/fab");
65 var fab_container_1 = require("./components/fab/fab-container");
66 var fab_list_1 = require("./components/fab/fab-list");
67 var col_1 = require("./components/grid/col");
68 var grid_1 = require("./components/grid/grid");
69 var row_1 = require("./components/grid/row");
70 var icon_1 = require("./components/icon/icon");
71 var img_1 = require("./components/img/img");
72 var infinite_scroll_1 = require("./components/infinite-scroll/infinite-scroll");
73 var infinite_scroll_content_1 = require("./components/infinite-scroll/infinite-scroll-content");
74 var input_1 = require("./components/input/input");
75 var item_1 = require("./components/item/item");
76 var item_content_1 = require("./components/item/item-content");
77 var item_divider_1 = require("./components/item/item-divider");
78 var item_group_1 = require("./components/item/item-group");
79 var item_options_1 = require("./components/item/item-options");
80 var item_reorder_1 = require("./components/item/item-reorder");
81 var item_sliding_1 = require("./components/item/item-sliding");
82 var reorder_1 = require("./components/item/reorder");
83 var label_1 = require("./components/label/label");
84 var list_1 = require("./components/list/list");
85 var list_header_1 = require("./components/list/list-header");
86 var loading_component_1 = require("./components/loading/loading-component");
87 var loading_controller_1 = require("./components/loading/loading-controller");
88 var menu_1 = require("./components/menu/menu");
89 var menu_close_1 = require("./components/menu/menu-close");
90 var menu_controller_1 = require("./components/app/menu-controller");
91 var menu_toggle_1 = require("./components/menu/menu-toggle");
92 var modal_component_1 = require("./components/modal/modal-component");
93 var modal_controller_1 = require("./components/modal/modal-controller");
94 var nav_1 = require("./components/nav/nav");
95 var nav_pop_1 = require("./components/nav/nav-pop");
96 var nav_pop_anchor_1 = require("./components/nav/nav-pop-anchor");
97 var nav_push_1 = require("./components/nav/nav-push");
98 var nav_push_anchor_1 = require("./components/nav/nav-push-anchor");
99 var note_1 = require("./components/note/note");
100 var option_1 = require("./components/option/option");
101 var picker_component_1 = require("./components/picker/picker-component");
102 var picker_column_1 = require("./components/picker/picker-column");
103 var picker_controller_1 = require("./components/picker/picker-controller");
104 var popover_component_1 = require("./components/popover/popover-component");
105 var popover_controller_1 = require("./components/popover/popover-controller");
106 var radio_button_1 = require("./components/radio/radio-button");
107 var radio_group_1 = require("./components/radio/radio-group");
108 var range_1 = require("./components/range/range");
109 var range_knob_1 = require("./components/range/range-knob");
110 var refresher_1 = require("./components/refresher/refresher");
111 var refresher_content_1 = require("./components/refresher/refresher-content");
112 var scroll_1 = require("./components/scroll/scroll");
113 var searchbar_1 = require("./components/searchbar/searchbar");
114 var segment_1 = require("./components/segment/segment");
115 var select_1 = require("./components/select/select");
116 var select_popover_component_1 = require("./components/select/select-popover-component");
117 var segment_button_1 = require("./components/segment/segment-button");
118 var show_when_1 = require("./components/show-hide-when/show-when");
119 var hide_when_1 = require("./components/show-hide-when/hide-when");
120 var slide_1 = require("./components/slides/slide");
121 var slides_1 = require("./components/slides/slides");
122 var spinner_1 = require("./components/spinner/spinner");
123 var split_pane_1 = require("./components/split-pane/split-pane");
124 var tab_1 = require("./components/tabs/tab");
125 var tab_button_1 = require("./components/tabs/tab-button");
126 var tab_highlight_1 = require("./components/tabs/tab-highlight");
127 var tabs_1 = require("./components/tabs/tabs");
128 var thumbnail_1 = require("./components/thumbnail/thumbnail");
129 var toast_component_1 = require("./components/toast/toast-component");
130 var toast_controller_1 = require("./components/toast/toast-controller");
131 var toggle_1 = require("./components/toggle/toggle");
132 var toolbar_footer_1 = require("./components/toolbar/toolbar-footer");
133 var toolbar_header_1 = require("./components/toolbar/toolbar-header");
134 var toolbar_1 = require("./components/toolbar/toolbar");
135 var toolbar_item_1 = require("./components/toolbar/toolbar-item");
136 var toolbar_title_1 = require("./components/toolbar/toolbar-title");
137 var navbar_1 = require("./components/toolbar/navbar");
138 var typography_1 = require("./components/typography/typography");
139 var virtual_footer_1 = require("./components/virtual-scroll/virtual-footer");
140 var virtual_header_1 = require("./components/virtual-scroll/virtual-header");
141 var virtual_item_1 = require("./components/virtual-scroll/virtual-item");
142 var virtual_scroll_1 = require("./components/virtual-scroll/virtual-scroll");
143 /**
144 * @name IonicModule
145 * @description
146 * IonicModule is an [NgModule](https://angular.io/docs/ts/latest/guide/ngmodule.html) that bootstraps
147 * an Ionic App. By passing a root component, IonicModule will make sure that all of the components,
148 * directives, and providers from the framework are imported.
149 *
150 * Any configuration for the app can be passed as the second argument to `forRoot`. This can be any
151 * valid property from the [Config](/docs/api/config/Config/).
152 *
153 * @usage
154 * ```ts
155 * import { NgModule } from '@angular/core';
156 *
157 * import { IonicApp, IonicModule } from 'ionic-angular';
158 *
159 * import { MyApp } from './app.component';
160 * import { HomePage } from '../pages/home/home';
161 *
162 * @NgModule({
163 * declarations: [
164 * MyApp,
165 * HomePage
166 * ],
167 * imports: [
168 * BrowserModule,
169 * IonicModule.forRoot(MyApp, {
170 *
171 * })
172 * ],
173 * bootstrap: [IonicApp],
174 * entryComponents: [
175 * MyApp,
176 * HomePage
177 * ],
178 * providers: []
179 * })
180 * export class AppModule {}
181 * ```
182 */
183 var IonicModule = (function () {
184 function IonicModule() {
185 }
186 /**
187 * Set the root app component for you IonicModule
188 * @param {any} appRoot The root AppComponent for this app.
189 * @param {any} config Config Options for the app. Accepts any config property.
190 * @param {any} deepLinkConfig Any configuration needed for the Ionic Deeplinker.
191 */
192 IonicModule.forRoot = function (appRoot, config, deepLinkConfig) {
193 if (config === void 0) { config = null; }
194 if (deepLinkConfig === void 0) { deepLinkConfig = null; }
195 return {
196 ngModule: IonicModule,
197 providers: [
198 // useValue: bootstrap values
199 { provide: app_root_1.AppRootToken, useValue: appRoot },
200 { provide: config_1.ConfigToken, useValue: config },
201 { provide: url_serializer_1.DeepLinkConfigToken, useValue: deepLinkConfig },
202 { provide: common_1.APP_BASE_HREF, useValue: '/' },
203 // useFactory: user values
204 { provide: platform_registry_1.PlatformConfigToken, useFactory: platform_registry_1.providePlatformConfigs },
205 // useFactory: ionic core providers
206 { provide: platform_1.Platform, useFactory: platform_1.setupPlatform, deps: [platform_browser_1.DOCUMENT, platform_registry_1.PlatformConfigToken, core_1.NgZone] },
207 { provide: config_1.Config, useFactory: config_1.setupConfig, deps: [config_1.ConfigToken, platform_1.Platform] },
208 // useFactory: ionic app initializers
209 { provide: core_1.APP_INITIALIZER, useFactory: mode_registry_1.registerModeConfigs, deps: [config_1.Config], multi: true },
210 { provide: core_1.APP_INITIALIZER, useFactory: events_1.setupProvideEvents, deps: [platform_1.Platform, dom_controller_1.DomController], multi: true },
211 { provide: core_1.APP_INITIALIZER, useFactory: tap_click_1.setupTapClick, deps: [config_1.Config, platform_1.Platform, dom_controller_1.DomController, app_1.App, gesture_controller_1.GestureController], multi: true },
212 { provide: core_1.APP_INITIALIZER, useFactory: module_loader_1.setupPreloading, deps: [config_1.Config, url_serializer_1.DeepLinkConfigToken, module_loader_1.ModuleLoader, core_1.NgZone], multi: true },
213 // useClass
214 { provide: platform_browser_1.HAMMER_GESTURE_CONFIG, useClass: gesture_config_1.IonicGestureConfig },
215 // useValue
216 { provide: core_1.ANALYZE_FOR_ENTRY_COMPONENTS, useValue: appRoot, multi: true },
217 // ionic providers
218 action_sheet_controller_1.ActionSheetController,
219 alert_controller_1.AlertController,
220 app_1.App,
221 dom_controller_1.DomController,
222 events_1.Events,
223 form_1.Form,
224 gesture_controller_1.GestureController,
225 haptic_1.Haptic,
226 keyboard_1.Keyboard,
227 loading_controller_1.LoadingController,
228 common_1.Location,
229 menu_controller_1.MenuController,
230 modal_controller_1.ModalController,
231 ng_module_loader_1.NgModuleLoader,
232 picker_controller_1.PickerController,
233 popover_controller_1.PopoverController,
234 tap_click_1.TapClick,
235 toast_controller_1.ToastController,
236 transition_controller_1.TransitionController,
237 { provide: module_loader_1.ModuleLoader, useFactory: module_loader_1.provideModuleLoader, deps: [ng_module_loader_1.NgModuleLoader, core_1.Injector] },
238 { provide: common_1.LocationStrategy, useFactory: provideLocationStrategy, deps: [common_1.PlatformLocation, [new core_1.Inject(common_1.APP_BASE_HREF), new core_1.Optional()], config_1.Config] },
239 { provide: url_serializer_1.UrlSerializer, useFactory: url_serializer_1.setupUrlSerializer, deps: [app_1.App, url_serializer_1.DeepLinkConfigToken] },
240 { provide: deep_linker_1.DeepLinker, useFactory: deep_linker_1.setupDeepLinker, deps: [app_1.App, url_serializer_1.UrlSerializer, common_1.Location, module_loader_1.ModuleLoader, core_1.ComponentFactoryResolver] },
241 ]
242 };
243 };
244 IonicModule.decorators = [
245 { type: core_1.NgModule, args: [{
246 declarations: [
247 action_sheet_component_1.ActionSheetCmp,
248 alert_component_1.AlertCmp,
249 click_block_1.ClickBlock,
250 app_root_2.IonicApp,
251 overlay_portal_1.OverlayPortal,
252 avatar_1.Avatar,
253 backdrop_1.Backdrop,
254 badge_1.Badge,
255 button_1.Button,
256 card_1.Card,
257 card_content_1.CardContent,
258 card_header_1.CardHeader,
259 card_title_1.CardTitle,
260 checkbox_1.Checkbox,
261 chip_1.Chip,
262 col_1.Col,
263 content_1.Content,
264 datetime_1.DateTime,
265 fab_1.FabButton,
266 fab_container_1.FabContainer,
267 fab_list_1.FabList,
268 grid_1.Grid,
269 img_1.Img,
270 icon_1.Icon,
271 infinite_scroll_1.InfiniteScroll,
272 infinite_scroll_content_1.InfiniteScrollContent,
273 item_1.Item,
274 item_content_1.ItemContent,
275 item_divider_1.ItemDivider,
276 item_group_1.ItemGroup,
277 item_options_1.ItemOptions,
278 item_reorder_1.ItemReorder,
279 item_sliding_1.ItemSliding,
280 label_1.Label,
281 list_1.List,
282 list_header_1.ListHeader,
283 reorder_1.Reorder,
284 loading_component_1.LoadingCmp,
285 menu_1.Menu,
286 menu_close_1.MenuClose,
287 menu_toggle_1.MenuToggle,
288 modal_component_1.ModalCmp,
289 nav_1.Nav,
290 nav_pop_1.NavPop,
291 nav_pop_anchor_1.NavPopAnchor,
292 nav_push_1.NavPush,
293 nav_push_anchor_1.NavPushAnchor,
294 note_1.Note,
295 option_1.Option,
296 picker_component_1.PickerCmp,
297 picker_column_1.PickerColumnCmp,
298 popover_component_1.PopoverCmp,
299 radio_button_1.RadioButton,
300 radio_group_1.RadioGroup,
301 range_1.Range,
302 range_knob_1.RangeKnob,
303 refresher_1.Refresher,
304 refresher_content_1.RefresherContent,
305 row_1.Row,
306 scroll_1.Scroll,
307 searchbar_1.Searchbar,
308 segment_1.Segment,
309 segment_button_1.SegmentButton,
310 select_1.Select,
311 select_popover_component_1.SelectPopover,
312 show_when_1.ShowWhen,
313 hide_when_1.HideWhen,
314 slide_1.Slide,
315 slides_1.Slides,
316 spinner_1.Spinner,
317 split_pane_1.SplitPane,
318 tab_1.Tab,
319 tab_button_1.TabButton,
320 tab_highlight_1.TabHighlight,
321 tabs_1.Tabs,
322 input_1.TextInput,
323 thumbnail_1.Thumbnail,
324 toast_component_1.ToastCmp,
325 toggle_1.Toggle,
326 toolbar_footer_1.Footer,
327 toolbar_header_1.Header,
328 toolbar_1.Toolbar,
329 toolbar_item_1.ToolbarItem,
330 toolbar_title_1.ToolbarTitle,
331 navbar_1.Navbar,
332 typography_1.Typography,
333 virtual_footer_1.VirtualFooter,
334 virtual_header_1.VirtualHeader,
335 virtual_item_1.VirtualItem,
336 virtual_scroll_1.VirtualScroll
337 ],
338 imports: [
339 common_2.CommonModule,
340 forms_1.FormsModule,
341 forms_1.ReactiveFormsModule,
342 ],
343 exports: [
344 common_2.CommonModule,
345 forms_1.FormsModule,
346 forms_1.ReactiveFormsModule,
347 action_sheet_component_1.ActionSheetCmp,
348 alert_component_1.AlertCmp,
349 click_block_1.ClickBlock,
350 app_root_2.IonicApp,
351 overlay_portal_1.OverlayPortal,
352 avatar_1.Avatar,
353 backdrop_1.Backdrop,
354 badge_1.Badge,
355 button_1.Button,
356 card_1.Card,
357 card_content_1.CardContent,
358 card_header_1.CardHeader,
359 card_title_1.CardTitle,
360 checkbox_1.Checkbox,
361 chip_1.Chip,
362 col_1.Col,
363 content_1.Content,
364 datetime_1.DateTime,
365 fab_1.FabButton,
366 fab_container_1.FabContainer,
367 fab_list_1.FabList,
368 grid_1.Grid,
369 img_1.Img,
370 icon_1.Icon,
371 infinite_scroll_1.InfiniteScroll,
372 infinite_scroll_content_1.InfiniteScrollContent,
373 item_1.Item,
374 item_content_1.ItemContent,
375 item_divider_1.ItemDivider,
376 item_group_1.ItemGroup,
377 item_options_1.ItemOptions,
378 item_reorder_1.ItemReorder,
379 item_sliding_1.ItemSliding,
380 label_1.Label,
381 list_1.List,
382 list_header_1.ListHeader,
383 reorder_1.Reorder,
384 loading_component_1.LoadingCmp,
385 menu_1.Menu,
386 menu_close_1.MenuClose,
387 menu_toggle_1.MenuToggle,
388 modal_component_1.ModalCmp,
389 nav_1.Nav,
390 nav_pop_1.NavPop,
391 nav_pop_anchor_1.NavPopAnchor,
392 nav_push_1.NavPush,
393 nav_push_anchor_1.NavPushAnchor,
394 note_1.Note,
395 option_1.Option,
396 picker_component_1.PickerCmp,
397 picker_column_1.PickerColumnCmp,
398 popover_component_1.PopoverCmp,
399 radio_button_1.RadioButton,
400 radio_group_1.RadioGroup,
401 range_1.Range,
402 range_knob_1.RangeKnob,
403 refresher_1.Refresher,
404 refresher_content_1.RefresherContent,
405 row_1.Row,
406 scroll_1.Scroll,
407 searchbar_1.Searchbar,
408 segment_1.Segment,
409 segment_button_1.SegmentButton,
410 select_1.Select,
411 select_popover_component_1.SelectPopover,
412 show_when_1.ShowWhen,
413 hide_when_1.HideWhen,
414 slide_1.Slide,
415 slides_1.Slides,
416 spinner_1.Spinner,
417 split_pane_1.SplitPane,
418 tab_1.Tab,
419 tab_button_1.TabButton,
420 tab_highlight_1.TabHighlight,
421 tabs_1.Tabs,
422 input_1.TextInput,
423 thumbnail_1.Thumbnail,
424 toast_component_1.ToastCmp,
425 toggle_1.Toggle,
426 toolbar_footer_1.Footer,
427 toolbar_header_1.Header,
428 toolbar_1.Toolbar,
429 toolbar_item_1.ToolbarItem,
430 toolbar_title_1.ToolbarTitle,
431 navbar_1.Navbar,
432 typography_1.Typography,
433 virtual_footer_1.VirtualFooter,
434 virtual_header_1.VirtualHeader,
435 virtual_item_1.VirtualItem,
436 virtual_scroll_1.VirtualScroll
437 ],
438 entryComponents: [
439 action_sheet_component_1.ActionSheetCmp,
440 alert_component_1.AlertCmp,
441 app_root_2.IonicApp,
442 loading_component_1.LoadingCmp,
443 modal_component_1.ModalCmp,
444 picker_component_1.PickerCmp,
445 popover_component_1.PopoverCmp,
446 select_popover_component_1.SelectPopover,
447 toast_component_1.ToastCmp
448 ]
449 },] },
450 ];
451 /** @nocollapse */
452 IonicModule.ctorParameters = function () { return []; };
453 return IonicModule;
454 }());
455 exports.IonicModule = IonicModule;
456 /**
457 * @name IonicPageModule
458 * @description
459 * IonicPageModule is an [NgModule](https://angular.io/docs/ts/latest/guide/ngmodule.html) that
460 * bootstraps a child [IonicPage](../navigation/IonicPage/) in order to set up routing.
461 *
462 * @usage
463 * ```ts
464 * import { NgModule } from '@angular/core';
465 *
466 * import { IonicPageModule } from 'ionic-angular';
467 *
468 * import { HomePage } from './home';
469 *
470 * @NgModule({
471 * declarations: [
472 * HomePage
473 * ],
474 * imports: [
475 * IonicPageModule.forChild(HomePage)
476 * ],
477 * entryComponents: [
478 * HomePage
479 * ]
480 * })
481 * export class HomePageModule { }
482 * ```
483 */
484 var IonicPageModule = (function () {
485 function IonicPageModule() {
486 }
487 IonicPageModule.forChild = function (page) {
488 return {
489 ngModule: IonicPageModule,
490 providers: [
491 { provide: module_loader_1.LAZY_LOADED_TOKEN, useValue: page },
492 { provide: core_1.ANALYZE_FOR_ENTRY_COMPONENTS, useValue: page, multi: true },
493 ]
494 };
495 };
496 IonicPageModule.decorators = [
497 { type: core_1.NgModule, args: [{
498 imports: [IonicModule],
499 exports: [IonicModule]
500 },] },
501 ];
502 /** @nocollapse */
503 IonicPageModule.ctorParameters = function () { return []; };
504 return IonicPageModule;
505 }());
506 exports.IonicPageModule = IonicPageModule;
507 /**
508 * @hidden
509 */
510 function provideLocationStrategy(platformLocationStrategy, baseHref, config) {
511 return config.get('locationStrategy') === 'path' ?
512 new common_1.PathLocationStrategy(platformLocationStrategy, baseHref) :
513 new common_1.HashLocationStrategy(platformLocationStrategy, baseHref);
514 }
515 exports.provideLocationStrategy = provideLocationStrategy;
516});
517//# sourceMappingURL=module.js.map
\No newline at end of file