How to use the @angular/platform-server.Parse5DomAdapter function in @angular/platform-server

To help you get started, we’ve selected a few @angular/platform-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github barbatus / angular2-meteor-universal / build / bootloader.js View on Github external
'use strict';
var core_1 = require('@angular/core');
core_1.NgZone.assertNotInAngularZone = function () { };
var compiler_1 = require('@angular/compiler');
var directive_resolver_1 = require('@angular/compiler/src/directive_resolver');
var platform_browser_1 = require('@angular/platform-browser');
var platform_server_1 = require('@angular/platform-server');
platform_server_1.Parse5DomAdapter.makeCurrent(); // ensure Parse5DomAdapter is used
var dom_adapter_1 = require('@angular/platform-browser/src/dom/dom_adapter');
var DOM = dom_adapter_1.getDOM();
var lang_1 = require('@angular/core/src/facade/lang');
var Future = require('fibers/future');
var angular2_universal_1 = require('angular2-universal');
var angular2_meteor_1 = require('angular2-meteor');
var utils_1 = require('./utils');
var logger_1 = require('./logger');
var router_1 = require('./router');
var meteor_xhr_impl_1 = require('./meteor_xhr_impl');
var Bootloader = (function () {
    function Bootloader() {
    }
    Bootloader.prototype.serialize = function (component, providers, options) {
        if (!options.on) {
            var doc = this.createDoc(component);