Angularjs list and detail view

后端 未结 1 1150
别那么骄傲
别那么骄傲 2021-02-10 22:32

this is my basic scenario. For a list of items (summary view) i want to show details view of item that got clicked on the same page.

I took this jsfiddle example and tra

1条回答
  •  鱼传尺愫
    2021-02-10 22:48

    One way of transforming the example (provided that you want to use ngSwitch) would be:

    • {{item.content}}

    • {{opened.name}}: overlay: tweet, share, pin
      close

    And here is the working jsFiddle: http://jsfiddle.net/pkozlowski_opensource/sJdzt/4/

    Your jsFiddle didn't work since you were trying to reference item created in the ngRepeat scope (and thus not available outside of the ngRepeat).

    0 讨论(0)
提交回复
热议问题