css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div ng-app="myApp" ng-controller="MyCtrl as vm">
  <ul>
      <li ng-repeat="listItem in vm.myList | limitTo:vm.total:vm.beginOffset"><img height="64" ng-src="{{listItem.image}}" /> {{listItem.id}}: {{listItem.name}}</li>
  </ul>
  <button class="btn btn-primary" ng-click="vm.loadMoreItems()">Load next items</button>
</div>
<script src="https://code.angularjs.org/1.4.4/angular.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
            
          
!
            
              
var myApp = angular.module("myApp", []);

myApp.controller("MyCtrl", function(){
  var incrementValue = 10;
  var vm = this;
  // the initial limitation
  vm.total = incrementValue;
  vm.beginOffset = 0;
  
  // show more items:
  vm.loadMoreItems = function() {
    // vm.total += incrementValue;
    vm.beginOffset += incrementValue;
  };
  
  // generated via http://www.generatedata.com/ and http://thecatapi.com/
  vm.myList = [{"id":1,"name":"Fiona Faulkner","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":2,"name":"Cameran Lucas","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":3,"name":"Aaron Hunt","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":4,"name":"Cathleen Hines","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":5,"name":"Scarlet Sheppard","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":6,"name":"Margaret Webb","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":7,"name":"Delilah Whitehead","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":8,"name":"Edan Carter","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":9,"name":"Neville Carpenter","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":10,"name":"Flynn Conley","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":11,"name":"Mallory Cox","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":12,"name":"Edan Prince","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":13,"name":"Tad Rosales","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":14,"name":"Galena Parsons","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":15,"name":"Chanda Foster","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":16,"name":"Macaulay Webb","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":17,"name":"Justin Lyons","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":18,"name":"Hamish Sharpe","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":19,"name":"Eden Stephens","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":20,"name":"Sage Martinez","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":21,"name":"Nolan Reeves","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":22,"name":"Seth Finch","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":23,"name":"Rhea Greene","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":24,"name":"Aladdin Soto","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":25,"name":"Walter Fitzpatrick","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":26,"name":"Pandora Acevedo","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":27,"name":"Sybil Howell","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":28,"name":"Plato Joseph","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":29,"name":"Buckminster Mckee","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":30,"name":"Reece Savage","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":31,"name":"Sage Paul","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":32,"name":"Porter Underwood","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":33,"name":"Angela Downs","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":34,"name":"Cora Jacobs","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":35,"name":"Finn Alvarado","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":36,"name":"Hunter Greene","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":37,"name":"Dawn Sears","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":38,"name":"Charity Vega","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":39,"name":"Paula Drake","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":40,"name":"Mariam Lawrence","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":41,"name":"Dieter Mooney","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":42,"name":"Carissa Cantrell","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":43,"name":"Zorita Strong","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":44,"name":"Giselle Deleon","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":45,"name":"Camilla Huber","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":46,"name":"Clementine Bean","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":47,"name":"Dieter Bridges","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":48,"name":"Coby Quinn","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":49,"name":"Francis Harper","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":50,"name":"Rhona Olsen","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":51,"name":"Debra Collins","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":52,"name":"Knox Raymond","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":53,"name":"Galena Blankenship","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":54,"name":"Sybill Dean","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":55,"name":"Patricia Swanson","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":56,"name":"Shelley Dennis","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":57,"name":"Silas Holloway","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":58,"name":"Lesley Sykes","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":59,"name":"Scarlett Hopper","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":60,"name":"Maya Hurst","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":61,"name":"Abigail Kirkland","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":62,"name":"Lareina Norton","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":63,"name":"Scarlett Glenn","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":64,"name":"Deanna Hicks","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":65,"name":"Ramona Mcfarland","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":66,"name":"Nehru Irwin","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":67,"name":"Lionel Camacho","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":68,"name":"Oliver Christian","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":69,"name":"Gail Russell","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":70,"name":"Hayes Oneill","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":71,"name":"Odysseus Sykes","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":72,"name":"Wayne Ward","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":73,"name":"Deanna Kent","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":74,"name":"Brenda Sharp","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":75,"name":"Pascale Goodman","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":76,"name":"Moana Dean","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":77,"name":"James Blair","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":78,"name":"Pamela Cervantes","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":79,"name":"Xaviera Hobbs","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":80,"name":"Kirsten Paul","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":81,"name":"TaShya Banks","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":82,"name":"Macey Griffith","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":83,"name":"Preston Glass","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":84,"name":"Brandon Romero","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":85,"name":"Hilda Flores","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":86,"name":"Christopher Hobbs","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":87,"name":"TaShya Atkins","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":88,"name":"Kenneth Carney","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":89,"name":"Mira Mack","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":90,"name":"Chelsea Hooper","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":91,"name":"Ruth Herrera","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":92,"name":"Sopoline Payne","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":93,"name":"Jerry Rodriquez","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":94,"name":"Eden Haney","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":95,"name":"Yvette Douglas","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":96,"name":"Dustin Sosa","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":97,"name":"Knox Pacheco","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":98,"name":"India Riddle","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":99,"name":"Lynn Knight","image":"http://thecatapi.com/api/images/get?format=src&type=gif"},{"id":100,"name":"Grady Stewart","image":"http://thecatapi.com/api/images/get?format=src&type=gif"}];
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console