cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-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'>
      <title>Angular Bootstrap Style</title>
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<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">
            <ul class="nav nav-pills">
              <li><a href ng-click="tab = 1">Description</a></li>
              <li> <a href ng-click="tab = 2">Specifications</a></li>
              <li><a href ng-click="tab = 3">Reviews</a></li>
            <div class="panel" ng-show="tab === 1">
            <div class="panel" ng-show="tab === 2">
            <div class="panel" ng-show="tab === 3">
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
    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: [
        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: [
        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: [

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.


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