This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this import should be first in order to load some required settings (like globals and reflect-metadata) | |
| import {nativeScriptBootstrap} from "nativescript-angular/application"; | |
| import {AppComponent, APP_ROUTER_PROVIDERS} from "./app.component"; | |
| // HACK - patch dom adapter | |
| // For more info see: https://github.com/NativeScript/nativescript-angular/issues/305 | |
| import {Parse5DomAdapter} from '@angular/platform-server/src/parse5_adapter'; | |
| (<any>Parse5DomAdapter).prototype.getCookie = function (name) { return null; }; | |
| nativeScriptBootstrap(AppComponent, [APP_ROUTER_PROVIDERS]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Component} from "@angular/core"; | |
| import {RouterConfig} from "@angular/router"; | |
| import {NS_ROUTER_DIRECTIVES, nsProvideRouter} from "nativescript-angular/router"; | |
| import {ListPage} from "./pages/list/list.component"; | |
| import {PokemonPage} from "./pages/pokemon/pokemon.component"; | |
| @Component({ | |
| moduleId: module.id, | |
| selector: "my-app", |
NewerOlder