Skip to content

sending wildcards to the viewmodel #52

@gilesbradshaw

Description

@gilesbradshaw

More of a suggestion than a bug but would be very interested to know if this might be possible.

I'd like to be able to have an href like this parent/x/child/y/grandchild/z
such that x y and z get bound to values in the view model - in the same manner as URI parameters can be

and pages set up like this

<div data-bind = "page : {id:'parent'}">
    <div data-bind = "page : {id:'?', wildcard:pickparent}">      
        <!-- ko with: parent -->
            <div data-bind = "page : {id:'child'}">
                <div data-bind = "page : {id:'?', wildcard:pickchild}">      
                    <!-- ko with: child -->
                          --- the same for grandchild

                     <!--  /ko -->
                  <div>
            </div>            
        <!--  /ko -->
    <div>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions