How can I dynamically change the templateUrl from home.html to customer.html when a button is clicked?
first2.directive('mycustomer', function()
{
return {
restrict: "E",
replace: 'true',
template: 'home.html',//want to change this customer.html on button click
}
});
Is it possible to achieve this functionality?