Im trying to call a directive to change view based on my tab click.
My directive:
Proj.directive('tab1', function() {
return {
restrict:'E',
templateUrl:'partials/overviewPage.html'
};
});
and my controller:
$scope.selectTab = function(tab){
if(tab == 'something'){
$scope.content = '<tab1></tab1>';
}
}
and the div Im trying to change
<div ng-bind-html="content"></div>
Im trying to click on tab to show overviewPage.html page. But its not working properly.
Any suggestion, as I have just started with angularjs
Thanks.