angular-ui-router-tabs
Advanced tools
Comparing version 1.6.0 to 1.7.0
{ | ||
"name": "angular-ui-router-tabs", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "src/ui-router-tabs.js", | ||
"angular": "^1.3.15", | ||
"angular-bootstrap": "^0.13.0", | ||
"angular-bootstrap": "^0.14.0", | ||
"angular-ui-router": "^0.2.14" | ||
@@ -28,0 +28,0 @@ }, |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"license": "MIT", | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
@@ -103,2 +103,3 @@ # UI Router Tabs | ||
## History | ||
* 1.7.0 Added `uib` prefix for UI Bootstrap elements (as per v0.14.0). See [#47](/../../pull/47). | ||
* 1.6.0 Renamed `disabled` attribute to `disable` in line with UI Bootstrap `<tab>`. See [#39](/../../issues/39). | ||
@@ -105,0 +106,0 @@ * 1.5.1 Removed `bower_components` from repository. See [#40](/../../pull/40). |
@@ -20,3 +20,3 @@ 'use strict'; | ||
// Common.js package manager support (e.g. ComponentJS, WebPack) | ||
/* Common.js package manager support (e.g. ComponentJS, WebPack) */ | ||
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) { | ||
@@ -94,4 +94,2 @@ module.exports = 'ui.router.tabs'; | ||
// this always selects the first tab currently - fixed in ui-bootstrap master but not yet released | ||
// see https://github.com/angular-ui/bootstrap/commit/91b5fb62eedbb600d6a6abe32376846f327a903d | ||
$scope.update_tabs(); | ||
@@ -106,6 +104,6 @@ }], | ||
['$templateCache', function($templateCache) { | ||
var DEFAULT_TEMPLATE = '<div><tabset class="tab-container" type="{{type}}" vertical="{{vertical}}" ' + | ||
'justified="{{justified}}">' + '<tab class="tab" ng-repeat="tab in tabs" heading="{{tab.heading}}" ' + | ||
var DEFAULT_TEMPLATE = '<div><uib-tabset class="tab-container" type="{{type}}" vertical="{{vertical}}" ' + | ||
'justified="{{justified}}">' + '<uib-tab class="tab" ng-repeat="tab in tabs" heading="{{tab.heading}}" ' + | ||
'active="tab.active" disable="tab.disable" ng-click="go(tab)">' + | ||
'</tab></tabset></div>'; | ||
'</uib-tab></uib-tabset></div>'; | ||
@@ -112,0 +110,0 @@ $templateCache.put('ui-router-tabs-default-template.html', DEFAULT_TEMPLATE); |
124
27985
527