Instantly share code, notes, and snippets.

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';
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>();