Click here to Skip to main content
15,891,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to active class on true condition of some call to a function as follows using directives
@**@

What I have tried:

AlladinApp.directive('customLabel', customLabel);

function customLabel() {
var directive = {
link: link,
restrict: 'EA',
templateUrl: '/app/customlabel_tmpl.html',
scope: {
listtype: '=',
onselection: '&',
onselect: '&',
listitems:'='
}
};

return directive;
function link(scope, element, attrs) { }
}



folowing is the template



following is what i have replaced in view page for< li>
items

<custom-label listitems="SearchOptions.style" listtype="Style">


Here,onselection is getting the expected result but onselect is not working (ng-class is not working)plase help me.Thanks in advance
Posted
Updated 19-Jul-16 11:04am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900