Skip to content

Instantly share code, notes, and snippets.

View orgbx's full-sized avatar

orgbx

  • Spain / UK
View GitHub Profile
@orgbx
orgbx / angular2-meta.ts
Last active April 15, 2018 14:18
Working Angular 2 meta service with solution for "export function getDOM()" error
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Injectable, Inject } from '@angular/core';
import { DomAdapter } from '@angular/platform-browser/src/dom/dom_adapter';
import { __platform_browser_private__, DOCUMENT} from '@angular/platform-browser';
@orgbx
orgbx / app.ts
Created May 20, 2016 06:54
Angular 2 RC.1 Legacy webapp: multiple angular applications/components sharing injector without a root component
import {Component, Injectable} from '@angular/core'
import {Http} from '@angular/http'
import {ReplaySubject, Subject, Observable} from 'Rxjs';
// SERVICES
@Injectable()
export class CompService {
private _counter:number = 0;
private _commonCounter:Subject<number> = new ReplaySubject<number>();