How to pass data (selected item) to Durandal composed detail view?

后端 未结 3 1925
忘掉有多难
忘掉有多难 2021-02-08 18:41

I\'ve started using (as of, a few hours ago) Durandal with the hope to manage views and allow composition within a single page - the previous approach, also using Knockout, was

3条回答
  •  北海茫月
    2021-02-08 19:14

    If you look at the breeze source code, you can see an example of a master-detail approach.

    They are using an activator to compose the child view.

    https://github.com/IdeaBlade/Breeze/blob/master/Samples/TempHire/TempHire/App/viewmodels/resourcemgt.js

    I don't know if you are using breeze or not, but the approach is independent of how do you get the data.

提交回复
热议问题