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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <html ng-app="app">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">

    <title>Tabs Example</title>

    <link href="//" rel="stylesheet">
    <script src="//"></script>

  <body ng-controller="MainCtrl as main">
        <label class="item item-input item-select">
          <select ng-options="ticket as for ticket in tickets track by"
                  ng-change="countAll()" style="width: 30px">


      <!-- the check box -->
                 />Is Friend Present</ion-checkbox>


      <ion-item class="item-text-wrap">
          This is your <b>$scope.friend</b> object, notice how the selected ticket is an object. Also we need to specify what the <b>track by</b> field is so the control know how to determine what item to select
        <p><br/>The data <b>$scope.friend</b></p>
        <pre>{{ friend | json }}</pre>





                angular.module('app', ['ionic'] )
  .controller('MainCtrl', ['$scope', function($scope) {

    $scope.friend = {
      isPresent : true,
      selectedTicket : {"name" :"ticket two"} // <-- this is the default item

    $ = [
      {name : "ticket one"},
      {name : "ticket two"},
      {name : "ticket three"},   

    $scope.countAll = function() {