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 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';
View app.ts
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>();