I noticed a strange behavior when using multiple tabs on the same page in different modes. When I clicked a button that was supposed to fill in some inputs, the data filled in the last tab opened instead of the one I actually clicked on. The angular input:
<input type="text"
class="form-control"
id="Type"
style="width:170px;text-align:auto"
ng-model="This_Page.Data.Type"
ng-disabled="This_Page.Action == 'View'"
autocomplete="off">
Code snippet:
$scope.This_Page.Data.Type = l_Details.Type;
Any idea how I can make sure that each tab only receives its own data?
EDIT 1:
It seems like my initial question might have been a bit unclear...
I am working on an application that utilizes TABs, each with its own controller, which opens when requested. Some tabs are used for both creating and editing elements (for example, User Login credentials), sharing the same HTML and Controller code.
The problem arises when I open two instances of the same tab, as any changes made in one tab seem to affect the other instance of the same tab.
Hopefully, this clarifies things a bit more.
Thank you!