Angular batarang for safari?

973 views
Skip to first unread message

Patrick Stinson

unread,
Jan 23, 2014, 9:21:48 PM1/23/14
to ang...@googlegroups.com
Is there an angular batarang for safari, or other way to inspect an element's scope within Safari Dev Tools?

Thanks!

James Brewer

unread,
Jan 23, 2014, 11:01:10 PM1/23/14
to ang...@googlegroups.com
Unfortunately, Batarang is currently only available for Chrome and Safari does not have a similar tool. You should look into making one!


On Thu, Jan 23, 2014 at 6:21 PM, Patrick Stinson <pat...@vedanamedia.com> wrote:
Is there an angular batarang for safari, or other way to inspect an element's scope within Safari Dev Tools?

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 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/groups/opt_out.

Sander Elias

unread,
Jan 23, 2014, 11:26:51 PM1/23/14
to ang...@googlegroups.com

Hi Patrick,

I don’t think there is a batarang for Safari.
But you can get the scope easily using angular.element.

assuming you have an reference in elm you can do this: angular.element(elm).scope() and there you have it.

Regards
Sander

Domenico Matteo

unread,
Jan 24, 2014, 4:32:56 AM1/24/14
to ang...@googlegroups.com

Or you can pick an element in the HTML panel of the developer tools  (it exists in Safari too, If I'm not wrong)

and then type angular.element($0).scope() 

Patrick Stinson

unread,
Jan 24, 2014, 12:46:50 PM1/24/14
to ang...@googlegroups.com, ang...@googlegroups.com
I usually have jQuery so do $($0).scope(), but $scope would be ideal since I always get hung up on the syntax of the parenthesis.

Any tips on key angular concepts if I were to go about writing a safari extension for this? I've never written an extension before so would be starting from scratch...

Patrick Stinson
Owner, Vedanā Media
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/GKVDUUW0zp8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages