cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <html ng-app='store'>
<head>
      <title>Angular Bootstrap Style</title>
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

</head>
<body ng-controller="StoreController as store">
  <div class="row">
    <div class="col-sm-6 col-md-4" ng-repeat="product in store.products | orderBy:'price'">
      <div class="thumbnail">
        <h3>{{product.name}}<span style="float:right"><em>{{product.price | currency}}</em></span></h3>
        <img ng-src="{{product.images[0].thumbnail}}"/>
        <div class="caption">
        
          <section ng-init="tab = 1">
            <ul class="nav nav-pills">
              <li ng-class="{active:tab === 1}"><a href ng-click="tab = 1">Description</a></li>
              <li ng-class="{active:tab ===2}"> <a href ng-click="tab = 2">Specifications</a></li>
              <li ng-class="{active:tab ===3}"><a href ng-click="tab = 3">Reviews</a></li>
            </ul>
            <div class="panel" ng-show="tab === 1">
              <h4>Description</h4>
              <p>{{product.description}}</p>
            </div>
            <div class="panel" ng-show="tab === 2">
              <h4>Specifications</h4>
              <p>{{product.specification}}</p>
            </div>
            <div class="panel" ng-show="tab === 3">
              <h4>Reviews</h4>
              <p>{{product.review}}</p>
            </div>
          </section>
        </div>
      </div>
    </div>
  </div>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
</body> 
</html>
            
          
!
            
              (function(){
    var app = angular.module('store',[]);
    app.controller('StoreController', function() {
      this.products = drinks;
    });
    var drinks = [
      {
        name: 'Coke',
        price: 3.00,
        description: 'Fizzy, brown and sweet.',
        specification: 'carbonated soft drink.',
        review: 'This is the worst thing ever now.',
        images: [
          {
            full: 'http://www.coca-colaproductfacts.com/content/dam/productfacts/us/productDetails/ProductImages/Coke_12oz.png',
        thumbnail: 'https://res.cloudinary.com/livingdirect/image/upload/c_fill,d_no_product_image.jpg,dpr_1.0,e_unsharp_mask:25,f_auto,w_100/v1/product-images/CC10G/CC10G_001' 
          }
        ]
      },
      {
        name: 'Fanta',
        price: 3.50,
        description: 'Fizzy, orange and sweet.',
        specification: 'Carbonated soft drink.',
        review: 'I am currently in the most horribly intense gastrointestinal pain I have ever experienced,',
        images: [
          {
            full:'http://www.coca-colaproductfacts.com/content/dam/productfacts/us/productDetails/ProductImages/Fanta_12.png',
        thumbnail: 'http://gobazzar.com/media/catalog/product/cache/1/thumbnail/100x100/9df78eab33525d08d6e5fb8d27136e95/f/a/fanta_tin_300_ml.jpg' 
          }
        ]  
      },
      {
        name: 'Tea',
        price: 4.40,
        description: 'Hot and mellow.',
        specification: 'Aromatic beverage.',
        review: 'Lovely when you are sitting back and relaxing.',
        images: [
          {
            full:'http://media.istockphoto.com/photos/teatime-cup-of-black-tea-picture-id470645002?k=6&m=470645002&s=170667a&w=0&h=B6rTrEnux9wB0tSon649D1B-rLutNmkoxufRrhrZGiQ=',
        thumbnail: 'http://marmarafoods.com/media/catalog/product/cache/6/thumbnail/100x100/9df78eab33525d08d6e5fb8d27136e95/t/u/turk.teawcupclear_1.jpg' 
          }
        ]  
      },
      {
        name: 'Water',
        price: 1.50,
        description: 'clear and watery',
        specification: 'Polar inorganic compound',
        review: 'Tasteless, odourless and colourless.',
        images: [
          {
            full:'http://img1.exportersindia.com/product_images/bc-full/dir_8/234120/water-glass-315744.jpg',
            thumbnail:'https://www.barstuff.com/media/catalog/product/cache/2/thumbnail/100x/5e06319eda06f020e43594a9c230972d/1/1/1108_1/1-water-glass--vienna-88---135ml-11.jpg'
          }
        ]
      }    
    ]     
})();
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console