Hi
I have created a helper method in my can component that checks if a css class should be set or not
- if (can.route.current({ placeTypeGuid: options.context.guid })) {
- return options.fn();
- } else {
- return options.inverse();
- }
- <div id="{{guid}}" class="panel-body {{#isCurrent}}active{{/isCurrent}}">
What is the best way to reevaluate this method. Or can i use the live binding?
thx
christoph