Because there are two AddItemController instances, the item data gets loaded twice. The handling of the item data should therefore be extracted into a service or similar, to avoid this data loading and storage duplication.
Do this also for any other instance of direct $http usage in controllers and directives.
Because there are two AddItemController instances, the item data gets loaded twice. The handling of the item data should therefore be extracted into a service or similar, to avoid this data loading and storage duplication.
Do this also for any other instance of direct
$httpusage in controllers and directives.