Passing and invoking function from controller scope into directive by attr parameter