$scope.showDetails = function (dashboard_item) {
$log.debug("clicked");
$http({
url: '/Details/Details',
method: 'GET',
data: { name: dashboard_item.FName }
})
};
This will call method, but won't pass name to it and will return to angular controller. Instead of opening/staying on new page.
*onclick="location.href='@Url.Action("Details", "Details", new {name = $scope.dashboard_item.Fname })'"
This will properly open/return new page/view, but it can't access angular variable in razor/server side.
There doesn't seem to be any good examples or any information how to do something as simple as this. I know I should be probably be using angular routes, but I've got no clue how and honestly I would rather stick with asp MVC routing, but anything at this point would do..
TLDR I want to return/call/open new MVC view while passing parameters to it