Q:

AngularJS addclass: error addclass not a function

I'm new to AngularJS trying to addclass but getting error: 

addclass is not a function

$scope.viewReport = function(ev,element) 
{
        window.location="#tab7";
        $scope.tabact = document.getElementById('tab7');
        console.log($scope.tabact);
        $scope.tabact.addClass('active');
        $rootScope.callOrder = false
        $rootScope.step1=true
        $rootScope.step2=false
        $rootScope.step3=false
}

A:

Don't use addClass method if you can, but instead use a more angularish way: ng-class.

The ngClass directive allows you to dynamically set CSS classes on an HTML element by databinding an expression that represents all classes to be added.

So, in your html you can use something like this:
<div ng-class="{ 'active' : isActive }"> </div>

This way, you will have a cleaner code in your js: 
$scope.viewReport = function(ev,element) {
    window.location="#tab7";
    $scope.isActive = true;
    //$scope.tabact = document.getElementById('tab7'); no longer needed
    //$scope.tabact.addClass('active'); no longer needed

            $rootScope.callOrder = false
    $rootScope.step1=true
            $rootScope.step2=false
            $rootScope.step3=false
        }

