Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Step 23.33: Remove ng1 from PartyUninvited
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent cf59336 commit dfbc83e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
3 changes: 1 addition & 2 deletions client/main.ts
Expand Up @@ -22,7 +22,7 @@ import { registerPartyMap } from '../imports/ui/components/partyMap/partyMap';
import { registerPartyRemove } from '../imports/ui/components/partyRemove/partyRemove';
import { registerPartyRsvp } from '../imports/ui/components/partyRsvp/partyRsvp';
import { registerPartyRsvpsList } from '../imports/ui/components/partyRsvpsList/partyRsvpsList';
import { registerPartyUninvited, PartyUninvited } from '../imports/ui/components/partyUninvited/partyUninvited';
import { PartyUninvited } from '../imports/ui/components/partyUninvited/partyUninvited';
import { registerPartyUpload } from '../imports/ui/components/partyUpload/partyUpload';
import { registerPassword } from '../imports/ui/components/password/password';
import { registerRegister } from '../imports/ui/components/register/register';
Expand Down Expand Up @@ -63,7 +63,6 @@ registerPartyMap(adapter);
registerPartyRemove(adapter);
registerPartyRsvp(adapter);
registerPartyRsvpsList(adapter);
registerPartyUninvited(adapter);
registerPartyUpload(adapter);
registerPassword(adapter);
registerRegister(adapter);
Expand Down
2 changes: 0 additions & 2 deletions imports/ui/components/partyDetails/partyDetails.ts
Expand Up @@ -8,7 +8,6 @@ import { Meteor } from 'meteor/meteor';

import template from './partyDetails.html';
import { Parties } from '../../../api/parties';
import { PartyUninvitedNg1Module } from '../partyUninvited/partyUninvited';
import { PartyMapNg1Module } from '../partyMap/partyMap';

@Component({
Expand Down Expand Up @@ -72,7 +71,6 @@ const name = 'partyDetails';
export const PartyDetailsNg1Module = angular.module(name, [
angularMeteor,
uiRouter,
PartyUninvitedNg1Module.name,
PartyMapNg1Module.name
]);

Expand Down
14 changes: 0 additions & 14 deletions imports/ui/components/partyUninvited/partyUninvited.ts
@@ -1,5 +1,3 @@
import * as angular from 'angular';
import * as angularMeteor from 'angular-meteor';
import { Component, Input } from '@angular/core';
import { MeteorComponent } from 'angular2-meteor';

Expand Down Expand Up @@ -34,15 +32,3 @@ export class PartyUninvited extends MeteorComponent {
);
}
}

const name = 'partyUninvited';

// create a module
export const PartyUninvitedNg1Module = angular.module(name, [
angularMeteor
]);

export function registerPartyUninvited(adapter) {
PartyUninvitedNg1Module
.directive(name, adapter.downgradeNg2Component(PartyUninvited))
}

0 comments on commit dfbc83e

Please sign in to comment.