-
-
Save codecademydev/b2623cb8d921cd16a25542170e24c0b3 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module("PizzaPlanetApp", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css" rel="stylesheet" /> | |
<link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,400italic,700italic|Oswald' rel='stylesheet' type='text/css'> | |
<link href="css/main.css" rel="stylesheet" /> | |
<script src="js/vendor/angular.min.js"></script> | |
</head> | |
<body> | |
<div class="header"> | |
<h1><span>Pizza</span><span>Planet</span></h1> | |
</div> | |
<div class="main" ng-controller="MainController"> | |
<div class="container"> | |
<h1>Specials for {{ today | date }}</h1> | |
<h2>Appetizers</h2> | |
<div class="appetizers row" ng-repeat="appetizer in appetizers"> | |
<div class="item col-md-9"> | |
<h3 class="name">{{ appetizer.name }}</h3> | |
<p class="description">{{ appetizer.description }}</p> | |
</div> | |
<div class="price col-md-3"> | |
<p class="price">{{ appetizer.price | currency }}</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="footer"> | |
</div> | |
<!-- Modules --> | |
<script src="js/app.js"></script> | |
<!-- Controllers --> | |
<script src="js/controllers/MainController.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('MainController', ['$scope', function($scope) { | |
$scope.today = new Date(); | |
$scope.appetizers = [ | |
{ | |
name: 'Caprese', | |
description: 'Mozzarella, tomatoes, basil, balsmaic glaze.', | |
price: 4.95 | |
}, | |
{ | |
name: 'Mozzarella Sticks', | |
description: 'Served with marinara sauce.', | |
price: 3.95 | |
}, | |
{ | |
name: 'Bruschetta', | |
description: 'Grilled bread, garlic, tomatoes, olive oil.', | |
price: 4.95 | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment