Created
July 15, 2016 16:00
-
-
Save saimon24/e658ca130ad62c53d5234dec9240b378 to your computer and use it in GitHub Desktop.
This file contains 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]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment