Skip to content

Commit

Permalink
Step 23.30: Downgrade PartyDetails to ng1 directive
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 be001ae commit 42bb34a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions imports/ui/components/partyDetails/partyDetails.ts
Expand Up @@ -76,13 +76,9 @@ export const PartyDetailsNg1Module = angular.module(name, [
PartyMapNg1Module.name
]);

export function registerPartyDetails() {
export function registerPartyDetails(adapter) {
PartyDetailsNg1Module
.component(name, {
template,
controllerAs: name,
controller: PartyDetails
})
.directive(name, adapter.downgradeNg2Component(PartyDetails))
.config(config);
}

Expand Down

0 comments on commit 42bb34a

Please sign in to comment.