Guest User

Untitled

a guest
Nov 14th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. app.directive('productTabs', function(){
  3. return {
  4. restrict: 'E',
  5. templateUrl: 'product-tabs.html',
  6. controller: function(){
  7. this.tab = 1;
  8.  
  9. this.isSet = function(checkTab) {
  10. return this.tab === checkTab;
  11. };
  12.  
  13. this.setTab = function(setTab) {
  14. this.tab = setTab;
  15. };
  16. }
  17. ,
  18. controllerAs: 'tab';
  19. };
  20. });
Advertisement
Add Comment
Please, Sign In to add comment