This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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'; |