title: Trigger update of component view from service - No Provider for ChangeDetectorRef
body: <p>I would like to udpate my application view, triggered by events from service.</p>
  
  <p>One of my services injects the ChangeDetectorRef. Compilation works, but I am getting an error in the browser when the App is bootstrapped: <code>No provider for ChangeDetectorRef!</code>.</p>
  
  <p>I thought I needed to add it to my AppModule, but I can't find any documentation that suggests it is in a module that I can import there. I tried adding the class itself to the import array, but that caused an error. I also got an error trying to add it to the providers array in the module. Here is a simplified version of my service:</p>
  
  <pre><code>import {Injectable, ChangeDetectorRef } from '@angular/core';
  
  @Injectable()
  export class MyService {
    private count: number = 0;
    constructor(private ref: ChangeDetectorRef){}
  
    increment() {
      this.count++;
      this.ref.detectChanges();
  }
  </code></pre>
  
  <p>And the app module:</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  import { BrowserModule } from '@angular/platform-browser';
  
  import { AppComponent } from './app.component';
  
  import { MyService } from './my.service';
  
  @NgModule({
    imports: [ BrowserModule ],
    declarations: [ AppComponent ],
    providers: [ MyService ],
    booststrap: [ AppComponent ]
  })
  export AppModule {}
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p><strike>I have since tried removing my use of ChangeDetectorRef, and I still have the same problem. I am guessing there is something wrong about how I updated my System JS config.</strike></p>
  
  <p>I originally created the app with angular-cli, and was trying to update Angular on my own since they had not updated that. With the final release of Angular 2.0.0 they have updated angular-cli to use the latest version of angular. So I am going to try using their upgrade procedures and hopefully that goes better.</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>The webpack/angular-cli update went well. I have the app building now with Angular 2.0.0 in and angular-cli 1.0.0-beta14. I still get the same error in the browser. I tried removing the <em>ChangeDetectorRef</em> from the service, but I didn't really. I had it in two services. If I remove it from both services, then my app loads fine, and works well, except for where I was trying to use <em>ChangeDetectorRef</em>. Once I add it back in one of the files,  the browser has complains about not being able to find a provider for it.</p>
  
  <p>I tried importing it in my <em>module</em>, but it is not a <em>module</em>, so the transpiler complains. I tried listing it a a <em>provider</em> in my module, but it does not have a provide property, so the transpiler complains. similar issues if I try putting it in the <em>declarations</em> array.</p>