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="ionicApp">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title>Ionic Template</title>

    <link href="" rel="stylesheet">
    <script src=""></script>
    <ion-nav-bar class="bar-assertive nav-title-slide-ios7">
      <ion-nav-back-button class="button-icon ion-arrow-left-c">

    <script id="ui/modules/tabs/view.html" type="text/ng-template">
      <ion-nav-view name="main-area"></ion-nav-view>      
    <script id="ui/modules/settings/view.html" type="text/ng-template">
      <ion-view title="Settings" hide-back-button="false" class="slide-left-right-ios7">
        <ion-content padding="true">
          <form action="" name="settings">
            <div class="list">
              <label class="item item-input">
                <span class="input-label">Email</span>
                <input type="email" name="email" ng-model="userEmail" required>
              <label class="item item-input">
                <span class="input-label">Subject</span>
                <input type="text" name="subject" ng-model="subject">
              <ion-toggle ng-model="enableAwesomeness" toggle-class="toggle-assertive">Enable awesomeness</ion-toggle>
              <ion-toggle ng-model="disableBorders" toggle-class="toggle-assertive">Disable borders</ion-toggle>



                body {
  cursor: url(''), auto;


                angular.module('ionicApp', ['ionic'])
.config(function($stateProvider, $urlRouterProvider) {
      .state('app', {
        url: "/app",
        abstract: true,
        controller: 'AppController',
        templateUrl: "ui/modules/tabs/view.html"
      .state('app.settings', {
        url: '/settings',
        views: {
          'main-area' : {
            controller: 'SettingsController',
            templateUrl: 'ui/modules/settings/view.html'

  // if none of the above states are matched, use this as the fallback

.controller('AppController', function($scope) {
.controller('SettingsController', function($scope) {