Hey Marcin,
Hmmm. Will the content within the tabs vary wildly based on the id of the item? For example, based on your screenshot:
- Could the content for tab "detail 1" be very different from that of "detail 2"? I'm thinking yes but correct me if I'm wrong.
- Could the content for tab "detail 1" for "3 item name" be very different from the content in tab "detail 1" for "2 item name" ? I'm thinking not, but again correct me if I'm wrong.
I'm thinking you could use a combination of directives, each with their own template and controller to achieve what you need. Your answers to the questions above would help to prove that out.
If you're curious take a look at Directives in the Developer Guide (
http://docs.angularjs.org/guide/directive). Specifically I'm thinking the "Writing directives (long version)" could help you out. There is info there about the template and controller related to the idea I mentioned above.
Let us know how it goes.
--
B