After days of experimenting, I realized that a pure templating solution 
with ng-repeat and ng-if/ng-switch just won't work.  I turned to the scary 
beast which turned out to be a beautiful princess in the end; I'm referring 
to Angular directives ;p  

Here's the plnkr <http://plnkr.co/edit/OMK0QOFTMGK9wUc7HV0j?p=preview>for 
anyone interested.

On Tuesday, 4 March 2014 11:40:54 UTC+8, Zhenghao Huang wrote:
>
> I appreciate your advise.  I'll dig deeper myself, but I'd love to see how 
> other people would approach this problem.
>
> On Monday, 3 March 2014 20:58:09 UTC+8, Sander Elias wrote:
>>
>> Hi Zhenghao,
>>
>> This problem has very little to do with angular, and a lot with data 
>> manipulation.
>> I don't see how this is more easily sorted out using jQuery, the problem 
>> stays the same. 
>> To solve this, you need to translate your data that you get in no less 
>> than 3 different objects into a matrix.
>> Showing it in the view is simply traversing that matrix. Available time 
>> does not permit it to code it up for you now. 
>> Go ahead, and see how far you can come. Feel free to ask questions. Next 
>> wednesday I might have a chance to look deeper into this.
>>
>> Regards
>> Sander
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to