Hello!

I am new in Angular, I'd like to ask you to kindly debrief me, for creating 
a scaffolding prototype for a grid interface with dynamically added columns.
I would like to ask you a de-brief for taking the proper direction and not 
get lost in overcomplicated data-structures!

I am working on an interface prototype where you have a list of columns.
Each column has a list of items.
Each item can be clicked and fire the creation of the next column.
You can iterate through columns.
E.g. Column [0] > a list of elements associated to ID [0];
You click element [0.1] and a column [0.1] will appear.

I though that:
search(item) binded to item lists in ColumnA, should pass results to Column 
B

Initially I thought to associate a controller to each column, the 
controller would have a search() function binded to the items.
The columns are not nested, so to pass the variable of a clicked item from 
one column to another, and create the second column on the fly, I thought 
to pass the variable through a shared service.

Smtg like:

http://jsfiddle.net/b2fCE/1/


My problem is, I don't know how many columns I could have: they are 
dynamically "created", and I wonder if I have to repeat the creations of 
controllers to bind data from controller 1, to controller 2, controller 
...n.

To iterate the creation of a column within a "panel", I took as example:
http://jsfiddle.net/ADukg/1559/


How could I shared a variable across N controllers and iterate the creation 
of a controller ?
Is it possibile to dynamically create a controller on the fly?
Would it make sense or would you suggest a more neat way ?

I'd be very grateful if you could help in debriefing a simple scaffolding 
for this type of interface!!

Thank you so much!
Luigi

-- 
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/d/optout.

Reply via email to