Skip to content

Commit

Permalink
feat: support fallback context
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 16, 2025
1 parent aab56a9 commit e69537a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ng-polymorpheus/src/directives/outlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export class PolymorpheusOutlet<C> implements OnChanges, DoCheck {
}

return new PolymorpheusContext(
this.context && typeof this.content === 'function'
? this.content(this.context)
typeof this.content === 'function'
? this.content(this.context ?? ({} as any))
: this.content,
);
}
Expand Down

0 comments on commit e69537a

Please sign in to comment.