> Hi, you can flow  like this 
> This is my C# controller code:
>
> //other codes
>         public ActionResult DetailTimesheet(int id)
>         {
>
                        ViewBag.lst = id; 

>
>             return View();
>         }
> //other codes
>
>
> In C# controller View 

<script type="text/javascript">

    var CID = @Html.Raw(Json.Encode(@ViewBag.lst));
   

</script>
 

> CID call in angular controller code:
> angular.module('MyApp').controller('MyAppCtrl', function ($scope) {
>     alert(CID );
>
> i think it is helpfull  to u
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to