Skip to content

Commit

Permalink
Step 6.3: Clean up App component
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 14, 2016
1 parent d198e1b commit ce730c5
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions client/imports/app/app.component.ts
@@ -1,23 +1,9 @@
import { Component } from '@angular/core';
import { Observable } from 'rxjs/Observable';

import { Parties } from '../../../both/collections/parties.collection';
import { Party } from '../../../both/models/party.model';

import template from './app.component.html';

@Component({
selector: 'app',
template
})
export class AppComponent {
parties: Observable<Party[]>;

constructor() {
this.parties = Parties.find({}).zone();
}

removeParty(party: Party): void {
Parties.remove(party._id);
}
}
export class AppComponent {}

0 comments on commit ce730c5

Please sign in to comment.