Skip to content

Commit

Permalink
Force re-render after singleSpaProps are set. Resolves #51. (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning authored Mar 29, 2021
1 parent 603cdb0 commit 2470bd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/single-spa-angularjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ function mount(opts, mountedInstances, props = {}) {
}

mountedInstances.instance.get("$rootScope").singleSpaProps = props;

// https://github.com/single-spa/single-spa-angularjs/issues/51
mountedInstances.instance.get("$rootScope").$apply();
});
}

Expand Down

0 comments on commit 2470bd0

Please sign in to comment.