JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.10.0.js"></script>
<script src="http://angular-ui.github.io/ui-router/release/angular-ui-router.js"></script>
<script src="https://code.angularjs.org/1.3.0-beta.11/angular.js" data-semver="1.3.0-beta.11" data-require="angular.js@1.3.0-beta.11"></script>
<script src="http://angular-ui.github.io/ui-router/release/angular-ui-router.js" data-semver="0.2.8" data-require="ui-router@0.2.8"></script>
<script data-require="ui-bootstrap@0.10.0" data-semver="0.10.0" src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.10.0.js"></script>
<link data-require="bootstrap-css@3.1.1" data-semver="3.1.1" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
<body ng-app="colorApp">
<div ui-view=""></div>
</body>
JavaScript
'use strict';
var colorApp = angular.module(
'colorApp', ['ui.router', 'ui.bootstrap', 'ui.bootstrap.tpls']
);
// routes / states
colorApp.config(
function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise("/");
$stateProvider
.state('index', {
url: "/",
template: "<p>Spin the <a ui-sref='wheel'>wheel</a></p>",
controller: function () {
}
})
.state('wheel', {
url: '/wheel',
controller: function ($scope) {
$scope.parentProp = ["This value added from wheel state controller."];
$scope.last_chosen = ["This value added from wheel state controller."];
},
views: {
'': { template: '<div class="row">' +
'<div class="col-md-8">' +
'<ul class="nav navbar-nav">' +
'<li><a ui-sref="wheel">Wheel</a></li>' +
'<li><a ui-sref="wheel.colors.pink">Show Colors</a></li>' +
'</ul>' +
'<div class="row">' +
'<div ui-view="colorsMenu"></div>' +
'<div ui-view=""></div>' +
'</div>' +
'<h3>Values of parentProp</h3>' +
'<ul>' +
'<li ng-repeat="val in parentProp">{{val}}</li>' +
...