Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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.


Auto Save

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.


                <body ng-app='myApp' ng-controller='myCtrl' class="container">
  <h1>Angular Table Rows</h1>
  <table class="table-striped table-bordered">
         <th ng-repeat="column in tblData">{{ column }}</th>
      <tr id="row{{rowId}}" ng-repeat="row in tblData" ng-init="rowId = $index">
        <td ng-repeat="cell in tblData">{{ rowId }}{{cell}} </td>
        <td><button class="btn btn-primary" ng-click="remove(rowId)">Remove</button></td>
    <li>Clicked button executes a function, disables, and shows activity spinner within the clicked button</li>
    <li>onFail: button reactivates and turns red</li>
    <li>onSuccess: associated row is replaced with status message "Sent {rowId} Successfully"</li>
    <li>Each button can be clicked to start it's own process</li> 


                table {
  max-width: 100%;
  min-width: 50%;
td, th {
  min-width: 100px;
  height: 50px;
  text-align: center;
  color: #ddd;
h2,ol {
  color: #999;
.alert-success td {
  color: #3c763d;

.alert td button {
  margin-right: 30px;


                angular.module('myApp', [])

.controller('myCtrl', function($scope){
  $scope.tblData = getData();
  $scope.remove = function(rowId){
    var target = '#row' + rowId;
    console.log('removing ' + target);
  function getData() {
    return ['A','B','C','D','E'];
  function getTemplate(id){
    var t = '';
    t += '<tr class="alert alert-success alert-dismissible">';
    t += '<td colspan="6">';
    t += '<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>';
    t += '<strong>Done!</strong> Removed RowId['+ id +'] Successfully</td></tr>';
    return t