Angular: Passing Parameters from one controller to controller

48 Views Asked by At

wanna pass paramters (row, filteredRows (a copy of rows) and a boolean from test1controller to test2controller. Always an assign error and undefined.

Thanx in advanced

<help>
</help>

Here's a link to my plnkr

1

There are 1 best solutions below

0
On BEST ANSWER

Simply put: use a service for your purpose. Services can be used to store data which you can use in as many controllers as you want.

Check this link for documentation on angular services