I'm stuck in situation where I have a Main html & js files which includes same Sub page (html & js) containing ng-upload component two times.
In Main page's controller I have defined different javascript filename arrays to both ng-included Sub pages instances. To Sub page's controller I pass an argument in ng-include directive so, that Sub page's controller should know witch filename array it should be using. I have also $watch for both Main page's filename arrays in sub page's controller because all added files are copied and uploaded from sub page's controller. There is also a Servlet which moves file content from ng-upload from Sub page to BackEnd. Problem is that when updating one Upload component in Main page it also updates second Upload component's file list. I have tried to avoid that using different javascript filename arrays. But I want to know is that can I use same Sub page containing ng-upload directive using ng-include directives in Main page? Is that allowed? I would not like to write two all most same kind of Sub pages / Controllers to get this issue to work. Has anyone of you used same instance of Sub page/controller in Main page and succesfully handling upload from each Sub page? An example would be great, Best Regards, Michael -- 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.
