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="boomstrap">
  <div ng-controller="SelectDemoCtrl">
    <div class="row">
    <div class="form-group">
      <div class="col-sm-6">
        <ui-select ng-model="superhero.selected">
          <ui-select-match placeholder="Select or search a superhero ...">{{$select.selected}}</ui-select-match>
          <ui-select-choices repeat="hero in getSuperheroes($ | filter: $">
            <div ng-bind="hero"></div>
      <label class="col-sm-3 control-label">You have chosen {{ superhero.selected }}!</label>


                body {
  padding: 36px 24px;

.row + .row {
  margin-top: 30px;



                (function(Boomstrap) {
  'use strict';
  Boomstrap.controller('SelectDemoCtrl', ['$scope', function($scope) {

    $scope.superhero = {
      selected: 'Batman'
    $scope.$watch('superhero.selected', function(newVal, oldVal) {
/*      if (newVal !== oldVal) {
        if ($scope.superheroes.indexOf(newVal) === -1) {
    $scope.getSuperheroes = function(search) {
     var newSupes = $scope.superheroes.slice();
      if (search && newSupes.indexOf(search) === -1) {
      return newSupes;
    $scope.superheroes = [
      'Hal Jordan',
      'Wonder Woman',
      'Captain America',
      'Martian Manhunter',
      'Dick Grayson',
      'Human Torch',
      'Invisible Woman',
      'Wally West',
      'Green Arrow',
      'Kyle Rayner',
      'Silver Surfer',
      'Iron Man',
      'Barry Allen',
      'Tim Drake',
      'Black Canary',
      'Billy Batson',
      'Black Panther',
      'Donna Troy',
      'Plastic Man',
      'Red Tornado',
      'Barbara Gordon',
      'Beast Boy',
      'John Stewart',
      'Ray Palmer',
      'Damian Wayne',
      'Huntress (Bertinelli)',
      'Hank Pym',
      'Professor X',
      'Nite Owl (Dreiberg)',
      'Nick Fury',
      'Bart Allen',
      'Bucky Barnes',
      'Alan Scott',
      'Jay Garrick',
      'Cassandra Cain',
      'Phantom Stranger',
      'Blue Beetle',
      'Black Lightning',
      'Big Barda',
      'Booster Gold',
      'Silk Spectre',
      'Miss Martian',
      'Captain Atom',
      'Power Girl',
      'Beta Ray Bill',
      'Black Widow',
      'Simon Baz',
      'Adam Strange',
      'Iron Fist',
      'Jesse Chambers',
      'Wonder Man',
      'Carol Danve'