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


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div ng-app="myApp">
  <div ng-controller="demoController as demo">
    <h2 class="page-header">Angular ngTable: inmemory list</h2>
    <table ng-table="demo.tableParams" show-filter="true" class="table table-bordered table-striped">
      <tr ng-repeat="row in $data track by">
        <td title="'Installation At'" filter="{installationAt: 'text'}" sortable="'installationAt'">{{row.installationAt}}</td>
        <td title="'Admin Email'" filter="{adminEmail: 'text'}" sortable="'adminEmail'">{{row.adminEmail}}</td>
        <td title="'Powered By'" filter="{poweredBy: 'text'}" sortable="'poweredBy'">{{row.poweredBy}}</td>
        <td title="'Powered By Icon'" filter="{poweredByIcon: 'text'}" sortable="'poweredByIcon'">{{row.poweredByIcon}}</td>




                var app = angular.module('myApp', ['ngTable']);
(function() {

  app.controller("demoController", demoController);
  demoController.$inject = ["NgTableParams", "demoDataGenerator"];

  function demoController(NgTableParams, demoDataGenerator) {
    // tip: to debug, open chrome dev tools and uncomment the following line 
    this.tableParams = new NgTableParams({
      page: 1, // show first page
      count: 10 // count per page
    }, {
      filterDelay: 0,
      dataset: demoDataGenerator.generateData(100)

(function() {

  app.service("demoDataGenerator", demoDataGenerator);

  function demoDataGenerator() {

    var template = {
      "installationAt": "Philadelphia, PA",
      "adminEmail": "",
      "poweredBy": "Cofax",
      "poweredByIcon": "/images/cofax.gif"

    this.generateData = generateData;

    function generateData(number) {
      return _.range(number).map(function(n) {
        var clone = _.mapValues(template, function(val) {
          return val + Number(_.uniqueId());
        _.extend(clone, {
          id: n
        return clone;

// note: commented out as currently codepen doesn't seem to like it
  "VLqqjP", "ngTable: server-side list",
  "jPxgzY", "ngTableDynamic: inmemory list",
  "qdLwOb", "Fake backend used by this codepen"