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.


Auto Save

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="myModule">
    <div ng-controller="myController">
            <tr ng-repeat="item in items">
                <td>{{ item.num }}</td>
                <td>{{ }}</td>
                <td>{{ item.lib }}</td>




                // [1] 모듈(ng-app) 선언 : app.js 등으로 분리
var myModule = angular.module("myModule", [])

// [2] 컨트롤러(ng-controller) 선언 : XXX-controller.js 등으로 분리
myModule.controller("myController", function($scope, ajaxServiceData) {
  $scope.items = ajaxServiceData.items;

// [3] 매개변수로 데이터를 주입: angular 데이터 형식 생성 : 각각의 페이지에 맞는 데이터를 받아오기
myModule.factory("ajaxServiceData", function() {
  return {
    items: [{
      num: 11,
      name: 'AngularJS',
      lib: '앵귤러'
    }, {
      num: 12,
      name: 'jQuery',
      lib: '제이쿼리'
    }, {
      num: 13,
      name: 'requireJS',
      lib: '모듈로더'