Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
update(docs): fixes log messages for dynamic demo
Browse files Browse the repository at this point in the history
Closes #3170
  • Loading branch information
Robert Messerle committed Jun 11, 2015
1 parent e8ec2b5 commit ca2d5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tabs/demoDynamicTabs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
$scope.$watch('selectedIndex', function(current, old){
previous = selected;
selected = tabs[current];
if ( old && (old != current)) $log.debug('Goodbye ' + previous.title + '!');
if ( current ) $log.debug('Hello ' + selected.title + '!');
if ( old + 1 && (old != current)) $log.debug('Goodbye ' + previous.title + '!');
if ( current + 1 ) $log.debug('Hello ' + selected.title + '!');
});
$scope.addTab = function (title, view) {
view = view || title + " Content View";
Expand Down

0 comments on commit ca2d5b7

Please sign in to comment.