Skip to content

Instantly share code, notes, and snippets.

@eimg
Created October 4, 2013 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eimg/6829307 to your computer and use it in GitHub Desktop.
Save eimg/6829307 to your computer and use it in GitHub Desktop.
<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