Moving scope.apply in the tabs

Fixing #126 

The scope.apply was required to force Angular to update the DOM after an external FoundationApi trigger for a tab.