Created
February 7, 2019 20:24
-
-
Save green3g/d37184e082a8ae67fc427a9cba2fefc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The resolved tool component to render | |
| */ | |
| toolComponent: { | |
| value({resolve, lastSet}) { | |
| this.promise.then((Component)=> { | |
| lastSet = lastSet.get(); | |
| if (lastSet) { | |
| resolve(lastSet); | |
| } | |
| resolve( | |
| new Component({ | |
| viewModel: this.props | |
| }) | |
| ); | |
| }); | |
| }, | |
| }, |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tool component is rendered into stache using
{{{toolComponent}}}.