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.


                <!-- Note that I used a JavaScript import feature of CodePen (the site where I posted this demo) which means that I don't need to put the AngularJS library in script tags here. -->

<div class="wrapper" ng-app ng-controller="MainCtrl">
  <h1>The People App</h1>
  <h4>View People</h4>
  Search! <input type="text" placeholder="Try typing here" ng-model="search" />
    <li ng-repeat="person in people | filter:search">
      {{ }} from {{ }}, {{ person.state }}
  <h4>Add People</h4>
  Enter the person's name: <input type="text" ng-model="person_name" />
  <br />
  <br />
	Enter the person's city: <input type="text" ng-model="person_city" />
  <br />
  <br />
	Enter the person's state: <input type="text" ng-model="person_state" />
  <br />
  <br />
	<button ng-click="addPerson()">Add the Person!</button>


                .wrapper {
  width: 80%;
  display: block;
  margin: 0 auto;
  padding: 2.5em;


                function MainCtrl($scope) {
  $scope.people = [{
		name: 'John Doe',
		city: 'New York City',
		state: 'New York'
	}, {
		name: 'John Smith',
		city: 'Oklahoma City',
		state: 'Oklahoma'
	}, {
		name: 'Henry Black',
		city: 'Topeka',
		state: 'Kansas'
	$scope.addPerson = function() {
      name: $scope.person_name,
      city: $scope.person_city,
      state: $scope.person_state
    $scope.person_name = '';
    $scope.person_city = '';
    $scope.person_state = '';