FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Feature Request - Nested Bindable Observables · Issue #2457 · NativeScript/NativeScript · GitHub

Feature Request - Nested Bindable Observables  #2457

Description

Reference Issue: #2436 (comment)

Basically right now we need to do this:

viewModel = new Observable({
  filter: {
    labels: new Observable({
      apply: "",
      cancel: "",
    })
  }
});

In order for child properties to notify of changes, it's not intuitive and a tad overly complex.

KendoUI on the otherhand manages to have a single root observable and every child property at any level just becomes observable with no extra work... reducing code complexity, potential slack\SO questions... and it just looks nicer

viewModel = new Observable({
    filter: {
            labels: {
                apply: "",
                cancel: "",
            }
    }
});

Kendo Sample: http://dojo.telerik.com/OCUkA

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL