Created
October 4, 2013 17:12
-
-
Save eimg/6829307 to your computer and use it in GitHub Desktop.
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
<html ng-app="ngSlides"> | |
<head> | |
<script src="js/angular.min.js"></script> | |
<script src="js/ngSlides.js"></script> | |
</head> | |
<body> | |
<div ng-controller="SlideController"> | |
<div class="slide {{slide.state}}" | |
ng-repeat="slide in slides" id="slide-{{$index}}"> | |
<a class="remove" href="#" ng-click="removeSlide(slide)">x</a> | |
<h2>{{slide.title}}</h2> | |
<p>{{slide.body}}</p> | |
<h3>#Slide-{{$index}}</h3> | |
</div> | |
<div class="navigation"> | |
<previous></previous> | |
<next></next> | |
</div> | |
<form ng-submit="addSlide()"> | |
<input type="text" ng-model="slideTitle" placeholder="Slide Title"> | |
<textarea ng-model="slideBody" placeholder="Slide body"></textarea> | |
<input class="btn-primary" type="submit" value="Add"> | |
</form> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment