How to use the angular2-platform-node/__private_imports__.CssSelector function in angular2-platform-node

To help you get started, we’ve selected a few angular2-platform-node 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 HelixOne / leto / src / __2.1.1.workaround.ts View on Github external
}



if (__compiler__ && __compiler__.SelectorMatcher && __compiler__.CssSelector) {
    patch = true;
    (__compiler__).__compiler_private__ = {
        SelectorMatcher: __compiler__.SelectorMatcher,
        CssSelector: __compiler__.CssSelector
    }
}

if (patch) {
    var __universal__ = require('angular2-platform-node/__private_imports__');
    __universal__.ViewUtils = __core_private__['view_utils'];
    __universal__.CssSelector = __universal__.CssSelector || __compiler__.CssSelector;
    __universal__.SelectorMatcher = __universal__.SelectorMatcher || __compiler__.SelectorMatcher;
}

// Fix Material Support
function universalMaterialSupports(eventName: string): boolean { return Boolean(this.isCustomEvent(eventName)); }
__platform_browser_private__.HammerGesturesPlugin.prototype.supports = universalMaterialSupports;
// End Fix Material Support

// Fix Universal Style
import { NodeDomRootRenderer, NodeDomRenderer } from 'angular2-universal/node';
function renderComponentFix(componentProto: any) {
  return new NodeDomRenderer(this, componentProto, this._animationDriver);
}
NodeDomRootRenderer.prototype.renderComponent = renderComponentFix;
// End Fix Universal Style
github DSpace / dspace-angular / src / platform / workarounds / __workaround.node.ts View on Github external
}



if (__compiler__ && __compiler__.SelectorMatcher && __compiler__.CssSelector) {
  patch = true;
  (__compiler__).__compiler_private__ = {
    SelectorMatcher: __compiler__.SelectorMatcher,
    CssSelector: __compiler__.CssSelector
  }
}

if (patch) {
  var __universal__ = require('angular2-platform-node/__private_imports__');
  __universal__.ViewUtils = __core_private__['view_utils'];
  __universal__.CssSelector = __universal__.CssSelector || __compiler__.CssSelector;
  __universal__.SelectorMatcher = __universal__.SelectorMatcher || __compiler__.SelectorMatcher;
}

// Fix Material Support
function universalMaterialSupports(eventName: string): boolean { return Boolean(this.isCustomEvent(eventName)); }
__platform_browser_private__.HammerGesturesPlugin.prototype.supports = universalMaterialSupports;
// End Fix Material Support

// Fix Universal Style
import { NodeDomRootRenderer, NodeDomRenderer } from 'angular2-universal/node';
function renderComponentFix(componentProto: any) {
  return new NodeDomRenderer(this, componentProto, this._animationDriver);
}
NodeDomRootRenderer.prototype.renderComponent = renderComponentFix;
// End Fix Universal Style
github angular / universal-starter / src / __workaround.node.ts View on Github external
}



if (__compiler__ && __compiler__.SelectorMatcher && __compiler__.CssSelector) {
    patch = true;
    (__compiler__).__compiler_private__ = {
        SelectorMatcher: __compiler__.SelectorMatcher,
        CssSelector: __compiler__.CssSelector
    }
}

if (patch) {
    var __universal__ = require('angular2-platform-node/__private_imports__');
    __universal__.ViewUtils = __core_private__['view_utils'];
    __universal__.CssSelector = __universal__.CssSelector || __compiler__.CssSelector;
    __universal__.SelectorMatcher = __universal__.SelectorMatcher || __compiler__.SelectorMatcher;
}

// Fix Material Support
function universalMaterialSupports(eventName: string): boolean { return Boolean(this.isCustomEvent(eventName)); }
__platform_browser_private__.HammerGesturesPlugin.prototype.supports = universalMaterialSupports;
// End Fix Material Support

// Fix Universal Style
import { NodeDomRootRenderer, NodeDomRenderer } from 'angular2-universal/node';
function renderComponentFix(componentProto: any) {
  return new NodeDomRenderer(this, componentProto, this._animationDriver);
}
NodeDomRootRenderer.prototype.renderComponent = renderComponentFix;
// End Fix Universal Style
github jkuri / angular-rollup-starter / scripts / lib / prerender.ts View on Github external
}



if (!__compiler__.__compiler_private__) {
  patch = true;
  (__compiler__).__compiler_private__ = {
    SelectorMatcher: __compiler__.SelectorMatcher,
    CssSelector: __compiler__.CssSelector
  }
}

let __universal__ = require('angular2-platform-node/__private_imports__');
if (patch) {
  __universal__.ViewUtils = __core_private__['view_utils'];
  __universal__.CssSelector = __compiler__.CssSelector;
  __universal__.SelectorMatcher = __compiler__.SelectorMatcher;
}

import 'core-js/client/shim';
import 'reflect-metadata';
import 'zone.js/dist/zone-node';
import 'zone.js/dist/long-stack-trace-zone';

import { getConfig } from './config';
import { AppModule } from '../../src/app/app.module.universal';
import * as path from 'path';
import * as fs from 'fs';
import { Observable } from 'rxjs';
import { generateFromString } from './generate_html';
import { platformNodeDynamic } from 'ng2-platform-node';
github TrilonIO / aspnetcore-angular-universal / src / Angular2Spa / Client / __2.1.1.workaround.ts View on Github external
}



if (!__compiler__.__compiler_private__) {
    patch = true;
    (__compiler__).__compiler_private__ = {
        SelectorMatcher: __compiler__.SelectorMatcher,
        CssSelector: __compiler__.CssSelector
    }
}

var __universal__ = require('angular2-platform-node/__private_imports__');
if (patch) {
    __universal__.ViewUtils = __core_private__['view_utils'];
    __universal__.CssSelector = __compiler__.CssSelector
    __universal__.SelectorMatcher = __compiler__.SelectorMatcher
}

angular2-platform-node

Universal (isomorphic) javascript support for Angular2

MIT
Latest version published 8 years ago

Package Health Score

63 / 100
Full package analysis

Similar packages