angular, ionic, activity directive issue example