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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

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.

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.

              <div class="intro">
  This demonstration shows how Angular-Material Tabs can be used with Angular-UI-Router
<div ng-app="dsntApp" 
     layout="column" class="demo" >

  <script type="text/ng-template" id="partials/view1.html">  Tab #1 </script>
  <script type="text/ng-template" id="partials/view2.html">  Tab #2 </script>
  <script type="text/ng-template" id="partials/view3.html">  Tab #3 </script>
    <h2 class="md-toolbar-tools">
  <md-tabs md-stretch-tabs 
     <md-tab label="tab1"></md-tab> 
     <md-tab label="tab2"></md-tab>
     <md-tab label="tab3"></md-tab>  

  <div id="content" ui-view flex> </div>


.intro {
    position: absolute;
    left: 30px;
    top: 20px;
    width: 600px;
    height: 20px;
    font-size : 12px;

.demo {
    position: relative;
    width: 600px;
    height: 300px;
    background-color: #cccccc;
    margin-top: 40px;
    margin-left: 0px;

.demo #content {
    background-color: rgb(255, 255, 255);
    padding: 30px;
    font-weight: 600;
    border: 1px solid #999999;
    border-top: none;

              (function(angular, undefined) {
    "use strict";
    angular.module('dsntApp', ['ngMaterial', "ui.router"])
    .config(function($stateProvider, $urlRouterProvider) {

        .state('view1', {
            url: "/view1",
            templateUrl: "partials/view1.html"
        .state('view2', {
            url: "/view2",
            templateUrl: "partials/view2.html"
        .state('view3', {
            url: "/view3",
            templateUrl: "partials/view3.html"
    .controller('tabCtrl', function($scope, $location, $log) {
        $scope.selectedIndex = 0;

        $scope.$watch('selectedIndex', function(current, old) {
            switch (current) {
                case 0:
                case 1:
                case 2:


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