Skip to content

Instantly share code, notes, and snippets.

@al-the-x
Created February 25, 2015 21:05
Show Gist options
  • Save al-the-x/85d8d241e79425259d65 to your computer and use it in GitHub Desktop.
Save al-the-x/85d8d241e79425259d65 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title> TIY Catalog -- TheIronYard does Etsy right </title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- bower:css -->
<!-- endbower -->
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
<script src="../bower_components/angular/angular.js"></script>
</head>
<body ng-app="tiy-catalog">
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<p ng-controller="MainController as app">Hello {{app.user.login}}! This is HTML5 Boilerplate.</p>
<!-- bower:js -->
<!-- endbower -->
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html>
(function(){
angular.module('tiy-catalog', [ ])
.controller('MainController', [ '$http', function($http){
var self = this;
$http.get('https://api.github.com/users/al-the-x')
.success(function(data){
self.user = data;
})
} ]) // END MainController
; // END module(tiy-catalog)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment