Hello,
I use Angular js in my MVC app.
I need to hide a div when my viewbag is false
I have try this
public ActionResult Index()
{
ViewBag.total = false;
return View();
}
My View
@{
var total= (string) ViewBag.total;
}
<div ng-if="total">
content here
</div>
and also this from here
http://stackoverflow.com/questions/27673786/angular-ng-if-not-working-with-razor-syntax
but it doesn't work. Any idea?
thank you
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.