Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
watch refreshOn attr properly for wrapped tabs directive
  • Loading branch information
RusinovAnton committed May 11, 2017
commit b55cc1f120f5804e5866f4bf9c28f59eccf8afb6
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-bootstrap-scrolling-tabs",
"version": "1.0.1",
"version": "1.0.2",
"main": [
"dist/scrolling-tabs.js",
"dist/scrolling-tabs.css"
Expand Down
2 changes: 1 addition & 1 deletion dist/scrolling-tabs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-bootstrap-scrolling-tabs",
"version": "1.0.1",
"version": "1.0.2",
"main": [
"dist/scrolling-tabs.js",
"dist/scrolling-tabs.css"
Expand Down
10 changes: 5 additions & 5 deletions src/scrolling-tabs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* angular-bootstrap-scrolling-tabs
* @version v1.0.1
* @version v1.0.2
* @link https://github.com/mikejacobson/angular-bootstrap-scrolling-tabs
* @author Mike Jacobson <michaeljjacobson1@gmail.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down Expand Up @@ -924,11 +924,11 @@
hasTabContentOutsideMovableContainer: true
};

angular.extend(scope, { scrtc: scrtc });
angular.extend(scope, { scrtc });

if (attrs.refreshOn) {
scope.$watch(attrs.refreshOn, function (newVal, oldVal) {
if (newVal && newVal !== oldVal) {
if (typeof attrs.refreshOn != 'undefined') {
attrs.$observe('refreshOn', function (attrValue) {
if (attrValue === 'true') {
scrollingTabsControl.handleTriggeredRefresh();
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/scrolling-tabs.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* angular-bootstrap-scrolling-tabs
* @version v1.0.1
* @version v1.0.2
* @link https://github.com/mikejacobson/angular-bootstrap-scrolling-tabs
* @author Mike Jacobson <michaeljjacobson1@gmail.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down