Skip to content

Similar signature as vue-router  #6

@msaelices

Description

@msaelices

For the sake of the code sharing experience, it would be great that:

  • The internal object created in the Vue instance was $router
  • The $navigator.navigate(to, options) method would be $router.push(to, options)
  • $router.replace(to) would be implemented as the current $navigator.navigate(to, {clearhistory: true})
  • $router.go(-1) would be implemented as the current $navigator.back()

If this was refactored, the basic navigation could be shared for mobile and web. And this would be an excellent starting point for a better vue-router integration with other non-web implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions