I have not seen anything about how one defines a guard. I assume it is whatever matches the instanceof for that class.
The real question is will there ever be a version of JS with annotations? I don't see any proposal on the ecmascript wiki about annotations (which is a little surprising as annotations would solve a lot of problems in angular and other applications).
Kamal.
--
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.