Skip to content

Instantly share code, notes, and snippets.

@saimon24
Created July 15, 2016 16:00
Show Gist options
  • Save saimon24/e658ca130ad62c53d5234dec9240b378 to your computer and use it in GitHub Desktop.
Save saimon24/e658ca130ad62c53d5234dec9240b378 to your computer and use it in GitHub Desktop.
// 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