Passing Value to a Angular Controller from MVC Controller Action
<http://forums.asp.net/post/5844041.aspx>
Hi ,
I have a Angular MVC Application my Angular controller code is like below.
app.controller('SearchController', ['$scope','$http',function ($scope,
$http) {
$scope.sessionGuid =
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
$scope.searchValue = "";
$scope.stockNumber = "";
$scope.searchRequest = {
Criteria: [],
resultsTabIndex: 0,
orderBy: "sortbypopularity",
value:"mut" //Added
};
I have a view Search.Html Which display the data on the basis of
searchRequest object which is defined in Controller above.
Now i have a requirement that i Need to show this view from MVC controller.
Do you have any idea how can i pass value to controller which is required
by the search request object so that i can show the view with the data.
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.