Skip to content

Instantly share code, notes, and snippets.

Omar Gaayeb orgbx

  • Spain / UK
View GitHub Profile
orgbx / angular2-meta.ts
Last active Apr 15, 2018
Working Angular 2 meta service with solution for "export function getDOM()" error
View angular2-meta.ts
* @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
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 / app.ts
Created May 20, 2016
Angular 2 RC.1 Legacy webapp: multiple angular applications/components sharing injector without a root component
View app.ts
import {Component, Injectable} from '@angular/core'
import {Http} from '@angular/http'
import {ReplaySubject, Subject, Observable} from 'Rxjs';
export class CompService {
private _counter:number = 0;
private _commonCounter:Subject<number> = new ReplaySubject<number>();
You can’t perform that action at this time.