Skip to content

NavigationEntry.bindingContext property #731

Closed

Description

@hamorphis

When you navigate to a page and provide a bindingContext, it would be nice this context to become the bindingContext of the page. In this way, you would not have to subscribe to each page's navigatedTo event simply to set its bindingContext. Instead you can do it like this:

    frameModule.topmost().navigate({
        moduleName: "details-page",
        bindingContext: new DetailsViewModel(id),
        animated: true,
        transition: {name: "slide"}
    });

Activity

  1. added this to the 1.4.0 milestone on Sep 14, 2015
  2. self-assigned this
    on Sep 14, 2015
  3. modified the milestones: , 1.4.0 on Sep 14, 2015
  4. removed this from the milestone on Sep 15, 2015
  5. removed their assignment
    on Oct 19, 2015
  6. self-assigned this
    on Jul 14, 2016
  7. hamorphis commented on Jul 18, 2016

    @hamorphis
    ContributorAuthor
  8. added this to the 2.2.0 milestone on Jul 18, 2016
  9. added a commit that references this issue on Jul 18, 2016
    36ae896
  10. hamorphis commented on Jul 19, 2016

    @hamorphis
    ContributorAuthor

    We will introduce a new property on the NavigationEntry class called bindingContext which should be used for this purpose.

  11. changed the title [-]Set the binding context of a page automatically when navigated to.[/-] [+]NavigationEntry.bindingContext property[/+] on Jul 19, 2016
  12. webleaf commented on Feb 7, 2019

    @webleaf

    Don't work with application.run() #6835

  13. lock commented on Feb 8, 2020

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  14. locked and limited conversation to collaborators on Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions