angular-ui-router-tabs
Advanced tools
Comparing version 1.5.1 to 1.6.0
{ | ||
"name": "angular-ui-router-tabs", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "src/ui-router-tabs.js", |
@@ -9,3 +9,3 @@ { | ||
"type": "git", | ||
"url": "http://github.com/rpocklin/ui-router-tabs" | ||
"url": "http://github.com/rpocklin/ui-router-tabs.git" | ||
}, | ||
@@ -15,3 +15,3 @@ "keywords": [ | ||
], | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"license": "MIT", | ||
@@ -43,7 +43,3 @@ "devDependencies": { | ||
"test": "grunt karma" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/npm/npm.git" | ||
} | ||
} |
@@ -103,2 +103,3 @@ # UI Router Tabs | ||
## History | ||
* 1.6.0 Renamed `disabled` attribute to `disable` in line with UI Bootstrap `<tab>`. See [#39](/../../issues/39). | ||
* 1.5.1 Removed `bower_components` from repository. See [#40](/../../pull/40). | ||
@@ -105,0 +106,0 @@ * 1.5.0 Bumped `angular-bootstrap` dependency to v0.13.0 (fixes default tab being auto-selected). |
@@ -20,2 +20,7 @@ 'use strict'; | ||
// Common.js package manager support (e.g. ComponentJS, WebPack) | ||
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) { | ||
module.exports = 'ui.router.tabs'; | ||
} | ||
angular.module('ui.router.tabs', []); | ||
@@ -67,3 +72,3 @@ angular.module('ui.router.tabs').directive( | ||
if (!currentStateEqualTo(tab) && !tab.disabled) { | ||
if (!currentStateEqualTo(tab) && !tab.disable) { | ||
$state.go(tab.route, tab.params, tab.options); | ||
@@ -103,3 +108,3 @@ } | ||
'justified="{{justified}}">' + '<tab class="tab" ng-repeat="tab in tabs" heading="{{tab.heading}}" ' + | ||
'active="tab.active" disable="tab.disabled" ng-click="go(tab)">' + | ||
'active="tab.active" disable="tab.disable" ng-click="go(tab)">' + | ||
'</tab></tabset></div>'; | ||
@@ -106,0 +111,0 @@ |
@@ -284,3 +284,3 @@ 'use strict'; | ||
scope.tabConfiguration[0].disabled = true; | ||
scope.tabConfiguration[0].disable = true; | ||
$ngView.find('a').eq(0).click(); | ||
@@ -287,0 +287,0 @@ scope.$apply(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28075
529
123
0