Hi, I got problem on pass parameter from server-side MVC C# controller to
AngularJS Controller.
This is my C# controller code:
//other codes
public ActionResult DetailTimesheet(int id)
{
return View(id);
}
//other codes
my angular controller code:
angular.module('MyApp').controller('MyAppCtrl', function ($scope) {
alert($scope.id);
I assume that variable "id" is already identified by angular on its
controller. But the result is undefined.
Please someone may help me. Thank you so much. :)
--
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.