Is it possible to access the component
namespace from sharedJS? e.g. calling component.html.post()
from within sharedJS.
Yes, this is possible. You may just want to make use of defining the id
attribute on your html
components and be mindful of when you are attempting to call component.html.post()
in sharedJS.
For more information on defining the id
attribute, see the html
documentation here.
Thanks! Since TypeScript apps don’t have the concept of sharedJS, I also confirmed that this approach works from within a TypeScript module.
1 Like