Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.directive('productTabs', function(){
- return {
- restrict: 'E',
- templateUrl: 'product-tabs.html',
- controller: function(){
- this.tab = 1;
- this.isSet = function(checkTab) {
- return this.tab === checkTab;
- };
- this.setTab = function(setTab) {
- this.tab = setTab;
- };
- }
- ,
- controllerAs: 'tab';
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment