microfronts
microfronts copied to clipboard
support history mode location changes
I created 2 options for location changes. Provided the ability to insert a class that has the same interface, for custom changes.
Default mode given to the Router class is the current behavior, using hash changes. The second class is using '"history" mode, changing the actual URL pathname.
Developers that use it, will still need to implement the trigger because by default - popstate event doesn't get triggered by pushState events.