JSFiddle for AngularJS master

129 views
Skip to first unread message

Oran Dennison

unread,
May 1, 2013, 2:19:35 PM5/1/13
to ang...@googlegroups.com
I've been trying to create a base JSFiddle using https://raw.github.com/angular/angular.js/master/src/Angular.js as a way to always be able to test things with the very latest bleeding-edge version of Angular.  So far I haven't had any luck because Github serves up that URL with a Content-Type of text/plain, which doesn't load as JavaScript in JSFiddle.  Github also doesn't like people hotlinking to resources at their raw URL.  Ideally I'd be able to link to something like http://code.angularjs.org/snapshot/ but with the very latest code.  Perhaps something like http://code.angularjs.org/master/ could be created?  Any other ideas for creating a JSFiddle that always loads the very latest version of Angular?

Josh David Miller

unread,
May 1, 2013, 2:22:10 PM5/1/13
to angular
Hello!

I'm sure GitHub doesn't like hotlinking to the raw URL, but this solution does work on Plunker regardless of the content type, which I've used several times before send demos based on experimental branches.

Josh


On Wed, May 1, 2013 at 11:19 AM, Oran Dennison <oden...@gmail.com> wrote:
I've been trying to create a base JSFiddle using https://raw.github.com/angular/angular.js/master/src/Angular.js as a way to always be able to test things with the very latest bleeding-edge version of Angular.  So far I haven't had any luck because Github serves up that URL with a Content-Type of text/plain, which doesn't load as JavaScript in JSFiddle.  Github also doesn't like people hotlinking to resources at their raw URL.  Ideally I'd be able to link to something like http://code.angularjs.org/snapshot/ but with the very latest code.  Perhaps something like http://code.angularjs.org/master/ could be created?  Any other ideas for creating a JSFiddle that always loads the very latest version of Angular?

--
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Oran Dennison

unread,
May 1, 2013, 2:43:28 PM5/1/13
to ang...@googlegroups.com
Hi Josh, I just tried Plunker and it has the same non-working behavior for me as JSFiddle.  Do you happen to have a link to a working Plunk?  Thanks!

Andy Joslin

unread,
May 1, 2013, 2:43:44 PM5/1/13
to ang...@googlegroups.com
Try the angular ci server :-)

I'm sure they dont like the hotlinking though, so use it sparingly..

Oran Dennison

unread,
May 1, 2013, 3:02:38 PM5/1/13
to ang...@googlegroups.com
Sweet, that works great!  Thanks, Andy!

Here's the base JSFiddle I made if anyone else wants to use it.  http://jsfiddle.net/orand/J6jXG/

Josh David Miller

unread,
May 1, 2013, 3:15:59 PM5/1/13
to angular
The file you're trying to link to (src/Angular.js) is not the built library but just one component of it so it will never work by itself, but I link to raw on Plunker frequently when that doesn't matter: http://plnkr.co/edit/JgeUP0anaU4BmsS5cJNh

If you need a built master, the CI server is probably your best bet.


--

Oran Dennison

unread,
May 1, 2013, 3:19:19 PM5/1/13
to ang...@googlegroups.com
Thanks Josh, that makes perfect sense.  I should have looked more closely at the file I thought I was linking to.
Reply all
Reply to author
Forward
0 new messages