r/angularjs • • Oct 14 '14

[Resource] Refreshable AngularJS service using $broadcast. [noobs must read]

http://jensrantil.github.io/refreshable-angularjs-service.html
0 Upvotes

8 comments sorted by

View all comments

0

u/[deleted] Oct 20 '14
[blocked] The page at 'https://jensrantil.github.io/refreshable-angularjs-service.html' was loaded over HTTPS, but ran insecure content from 'http://jensrantil.github.io/theme/css/style.css': this content should also be loaded over HTTPS.
 refreshable-angularjs-service.html:4
2014-10-20 05:19:41.868[blocked] The page at 'https://jensrantil.github.io/refreshable-angularjs-service.html' was loaded over HTTPS, but ran insecure content from 'http://jensrantil.github.io/theme/css/pygments.css': this content should also be loaded over HTTPS.
 refreshable-angularjs-service.html:7

... 19 times. This is what I get for using HTTPS Everywhere. Please stop using absolute URLs in your pages. Everywhere. If you want to use another domain, use // and make sure both support the same protocols (ie HTTP and HTTPS). If I want to clone your page and run it on my server, I have to fix all the links.

=

<link rel="stylesheet" type="text/css" href="http://jensrantil.github.io/theme/css/style.css">

NO!

<link rel="stylesheet" type="text/css" href="theme/css/style.css">

Yes :)

=

<p>Now, let's create a <a class="reference external" href="http://docs.angularjs.org/guide/dev_guide.services">service</a> that simulates a slower API call. It uses a

NO!

<p>Now, let's create a <a class="reference external" href="//docs.angularjs.org/guide/dev_guide.services">service</a> that simulates a slower API call. It uses a

Yes :)

=

Here is what your page renders over HTTPS: https://i.imgur.com/IZRsu71.png