Skip to content

Commit

Permalink
Step 23.10: Create module with instance of UpgradeAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent 9e9b146 commit 4c8f5eb
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions client/main.ts
@@ -1,4 +1,5 @@
import * as angular from 'angular';
import { UpgradeAdapter } from '@angular/upgrade';

import { Meteor } from 'meteor/meteor';

Expand All @@ -23,26 +24,28 @@ import { registerPassword } from '../imports/ui/components/password/password';
import { registerRegister } from '../imports/ui/components/register/register';
import { registerSocially, SociallyNg1Module } from '../imports/ui/components/socially/socially';

registerAuth();
registerLogin();
registerNavigation();
registerPartiesList();
registerPartiesMap();
registerPartiesSort();
registerPartyAdd();
registerPartyAddButton();
registerPartyCreator();
registerPartyDetails();
registerPartyImage();
registerPartyMap();
registerPartyRemove();
registerPartyRsvp();
registerPartyRsvpsList();
registerPartyUninvited();
registerPartyUpload();
registerPassword();
registerRegister();
registerSocially();
const adapter = new UpgradeAdapter();

registerAuth(adapter);
registerLogin(adapter);
registerNavigation(adapter);
registerPartiesList(adapter);
registerPartiesMap(adapter);
registerPartiesSort(adapter);
registerPartyAdd(adapter);
registerPartyAddButton(adapter);
registerPartyCreator(adapter);
registerPartyDetails(adapter);
registerPartyImage(adapter);
registerPartyMap(adapter);
registerPartyRemove(adapter);
registerPartyRsvp(adapter);
registerPartyRsvpsList(adapter);
registerPartyUninvited(adapter);
registerPartyUpload(adapter);
registerPassword(adapter);
registerRegister(adapter);
registerSocially(adapter);

function onReady() {
angular.bootstrap(document, [
Expand Down

0 comments on commit 4c8f5eb

Please sign in to comment.