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.


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.


                <body ng-app="app">

  <script type='text/ng-template' id="message-template">
      <div ng-message="minlength">Message must be over 10 characters</div>
        <div ng-message="required">This field is required</div>
      <div ng-message="maxlength">Message must not exceed 100 characters</div>
  <form name="exampleForm" class="elegant-aero">
    <label>Tell us a little bit about yourself.</label>
    <textarea type="text" name="userMessage" class="form-control" rows="4" ng-model="message" ng-minlength="10" ng-maxlength="100" required></textarea>
    <div ng-messages="exampleForm.userMessage.$error">
       <div ng-message="minlength">I'm going to need to know more than that!</div>
      <div ng-messages-include="message-template"></div>
     <label>What technologies do you like programming? </label>
    <textarea type="text" name="messageTwo" class="form-control" rows="4" ng-model="messageTwo" ng-minlength="10" ng-maxlength="100" required></textarea>
    <div ng-messages="exampleForm.messageTwo.$error">
      <div ng-message="minlength">Elaborate a little bit more on these technologies please!</div>
      <div ng-messages-include="message-template"></div>



.elegant-aero {
  margin-top: 25px;
  max-width: 600px;
  background: #D2E9FF;
  padding: 20px 20px 20px 20px;
  font: 12px Arial, Helvetica, sans-serif;
  color: #666;

.elegant-aero label {
  display: block;
  margin: 0px 0px 5px;

.elegant-aero input[type="text"], .elegant-aero input[type="email"], .elegant-aero textarea {
  color: #888;
  width: 60%;
  padding: 0px 0px 0px 5px;
  border: 1px solid #C5E2FF;
  background: #FBFBFB;
  outline: 0;
  -webkit-box-shadow:inset 0px 1px 6px #ECF3F5;
  box-shadow: inset 0px 1px 6px #ECF3F5;
  font: 200 12px/25px Arial, Helvetica, sans-serif;
  height: 30px;
  margin: 2px 6px 16px 0px;

.elegant-aero textarea{
  padding: 5px 0px 0px 5px;
  width: 60%;

  color: red;
  margin-top: 5px;


                var app = angular.module('app', ['ngMessages']);