I have a angularjs controller named 'FilterController' in my application . It's the controller that the user use to filter some data. When the user click on Search, I call a Mvc method that return an object with the data. This work well, but the problem is to show the data that i retrive
How can I load this data in a new controller that show this data?
In the model i have this class
public class DPIModel
{
public List<Dpi> listDpi{ get; set; }
}
Then the data are contained in a json that have this class The html is already loaded(because search is an ajax call) The html is like that
<div ng-controller="DPIController">
<div ng-repeat="item in listDpi">
{{item.name}}
</div>
name is a property of dpi class