Skip to content

Commit

Permalink
bingo!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Gray committed Apr 15, 2016
1 parent aa40285 commit cdd825c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"angular2": "2.0.0-beta.15",
"core-js": "^2.2.0",
"rxjs": "5.0.0-beta.2",
"rxjs": "5.0.0-beta.6",
"zone.js": "~0.6.11"
},
"keywords": [
Expand Down
8 changes: 3 additions & 5 deletions src/app/seed-app.ts
Expand Up @@ -8,9 +8,8 @@ import {RepoBrowser} from './components/repo-browser/repo-browser';

import {Observable} from "rxjs/Observable";

import 'rxjs/add/operator/distinct'
// relative paths to node_modules don't work any better:
//import '../../node_modules/rxjs/add/operator/distinct'
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/distinct';

@Component({
selector: 'seed-app',
Expand All @@ -29,9 +28,8 @@ export class SeedApp {
constructor() {
Observable.of(1,2,3,4,4,5,5,6)

// works!
.distinct()
//ERROR in [default] <path>/angular2-seed-add-operators/src/app/seed-app.ts:31:7
//Property 'distinct' does not exist on type 'Observable<number>'.

.subscribe(n => console.log(n));
}
Expand Down

0 comments on commit cdd825c

Please sign in to comment.