Closed martijnenco closed 5 years ago
Apparently documentation error; should be: import dotnetify, { Scope } from "dotnetify";
Thank you for the quick answer!
Alright, now I did that but now I have the next error(s).
My IDE is saying that it can't resolve 'Scope'.
It looks like Scope didn't do what I expected since I still get the error: TypeError: this.vm.$destroy is not a function
. Is there something else I do wrong?
Perhaps it'll be easier with reference implementation, so I added a simple Composite View example with 'Scope' to the React SPA demo here: https://github.com/dsuryd/dotNetify/tree/master/Demo/React/SPA
Let me know if you stil run into problems.
How do I use the <Scope ... /> component? If I try to import it I get an error saying:
Module not found: Can't resolve 'dotnetify/react'
As far as I know I use it exactly the same as in http://dotnetify.net/core/examples/compositeviewHere is my code:
And further down in there are some other scopes. But currently, it's crashing on the import...