Use a service to store your foods array in, then open a modular html dialog (not a new window) and in your dialog just get the data to bind from the service. Check out ngDialog on creating dialogs. You could also create a toggle button on the same page that toggles "print friendly" view, then it's just a matter of applying css styles to the existing controls via ngClass.
On Friday, October 23, 2015 at 1:11:13 AM UTC-7, Antonio Fardella wrote: > > Hi ! > > I'm doing an application. It has a table with one row with some field. > Then, the user can add rows and fill the new fields. In every rows I put > one checkbox. With a button the user can print a barcode of checked input. > I have two example: http://plnkr.co/edit/z2nXgXyGi6LhSHth8ZNi?p=preview > and http://plnkr.co/edit/3DrWMSssx5UaQfHADoEr?p=preview (here you have to > press Update to show the barcode). > > The barcode iterate correctly. But my problem is that i want to show > barcode of the checked rows in a new page (even modular window) because > then the user can press a button to print. But i don't know how: -To keep > all the barcode together, in a block outside the rows; -To move the div of > all barcode in a modular window. > > I tried with jQuery to clone the image of barcode..but i think it is a bad > practice to mix angular and jQuery: > http://plnkr.co/edit/j7SLNZQwXfce2nCcCnbu?p=preview > -- 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.
