v0.9.1 #31
Closed
ivanvoitovych
announced in
Announcements
v0.9.1
#31
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NO_ROUTER option
Viewi will not intercept your link clicks and will not handle page reloads.
Useful when:
Config
Example:
config.php
Usage
Include
Viewi
script on your pageOptionally you can use
getScriptsArray
method to get list of scripts to include it in your own manner, like in MFE usingincludeScript(path).then(...)
or similar.Define the places on your page where do you want to render Viewi components
Run Viewi
runComponent
method to render your componentsGet viewiApp instance:
Call
runComponent
method:For example:
Or if you use it within js:
Please note, Viewi does not provide
includeScript
method. It is anticipated that you have it (or similar) already as part of your code baseThis discussion was created from the release v0.9.1.
Beta Was this translation helpful? Give feedback.
All reactions