Skip to content

Instantly share code, notes, and snippets.

@leonardosantos
Last active August 29, 2015 14:05
Show Gist options
  • Save leonardosantos/f30d5ecebb8577252df2 to your computer and use it in GitHub Desktop.
Save leonardosantos/f30d5ecebb8577252df2 to your computer and use it in GitHub Desktop.
<html ng-app="doge">
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
angular
.module("doge", [])
.controller("Ctrl", function($scope){
$scope.url = "http://dogr.io/veryrestazero"+(location.pathname || "/")+".png"
});
</script>
</head>
<body ng-controller="Ctrl">
<img src="{{url}}" title="such RESTful" alt="doge"/>
<div>
<small>Powered by <a href="http://dogr.io">dogr.io</a></small>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment